mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-14 06:24:29 +01:00
Respect 'eternal' modifier from Forbidden and Arcanus in Deployer Recipes (#6231)
- We Could be Immortal - Fixes Creators-of-Create#6220
This commit is contained in:
parent
51db53c74f
commit
6802a1316b
@ -204,6 +204,8 @@ dependencies {
|
|||||||
// runtimeOnly fg.deobf("maven.modrinth:rubidium:0.5.3")
|
// runtimeOnly fg.deobf("maven.modrinth:rubidium:0.5.3")
|
||||||
// implementation fg.deobf("com.railwayteam.railways:railways-1.18.2-1.1.1:all") { transitive = false }
|
// implementation fg.deobf("com.railwayteam.railways:railways-1.18.2-1.1.1:all") { transitive = false }
|
||||||
// runtimeOnly fg.deobf("maven.modrinth:spark:1.10.38-forge")
|
// runtimeOnly fg.deobf("maven.modrinth:spark:1.10.38-forge")
|
||||||
|
//runtimeOnly fg.deobf("curse.maven:forbidden-arcanus-309858:4729924")
|
||||||
|
//runtimeOnly fg.deobf("curse.maven:valhelsia-core-416935:3886212")
|
||||||
|
|
||||||
// https://discord.com/channels/313125603924639766/725850371834118214/910619168821354497
|
// https://discord.com/channels/313125603924639766/725850371834118214/910619168821354497
|
||||||
// Prevent Mixin annotation processor from getting into IntelliJ's annotation processor settings
|
// Prevent Mixin annotation processor from getting into IntelliJ's annotation processor settings
|
||||||
|
@ -128,8 +128,9 @@ public class BeltDeployerCallbacks {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ItemStack heldItem = blockEntity.player.getMainHandItem();
|
ItemStack heldItem = blockEntity.player.getMainHandItem();
|
||||||
boolean unbreakable = heldItem.hasTag() && heldItem.getTag()
|
boolean unbreakable = heldItem.hasTag() && (
|
||||||
.getBoolean("Unbreakable");
|
heldItem.getTag().getBoolean("Unbreakable") ||
|
||||||
|
heldItem.getTag().getString("Modifier").equals("forbidden_arcanus:eternal")); // Forbidden Arcanus Compat, See Creators-of-Create#6220
|
||||||
boolean keepHeld =
|
boolean keepHeld =
|
||||||
recipe instanceof ItemApplicationRecipe && ((ItemApplicationRecipe) recipe).shouldKeepHeldItem();
|
recipe instanceof ItemApplicationRecipe && ((ItemApplicationRecipe) recipe).shouldKeepHeldItem();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user