Mystical Gears

Mystical Gears

1M Downloads

Crash when trying to obtain Mechanical Pattern Crafter with Railcraft installed

Lgmrszd opened this issue ยท 0 comments

commented

This crash only happens when Railcraft is installed.
When trying to obtain Mechanical Pattern Crafter from JEI, first crash happens (with VanillaFix, it's successfully caught and game keeps running). The block doesn't appears to be in inventory, but you can actually place it.

How it looks:Screenshot

First crashlog:

java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: Cannot set property PropertyDirection{name=facing, clazz=class net.minecraft.util.EnumFacing, values=[north, south, west, east]} to down on block mystgears:crafter_mechanical, it is not an allowed value
    at java.util.concurrent.FutureTask.report(FutureTask.java:122)
    at java.util.concurrent.FutureTask.get(FutureTask.java:192)
    at net.minecraft.util.Util.runTask(Util.java:531)
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:723)
    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:668)
    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:252)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IllegalArgumentException: Cannot set property PropertyDirection{name=facing, clazz=class net.minecraft.util.EnumFacing, values=[north, south, west, east]} to down on block mystgears:crafter_mechanical, it is not an allowed value
    at net.minecraft.block.state.BlockStateContainer$StateImplementation.withProperty(BlockStateContainer.java:235)
    at com.rcx.mystgears.block.BlockMechanicalCrafter.getStateFromMeta(BlockMechanicalCrafter.java:190)
    at mods.railcraft.common.util.inventory.InvTools.getBlockStateFromStack(InvTools.java:488)
    at mods.railcraft.common.blocks.tracks.TrackTools.isRailBlock(TrackTools.java:73)
    at mods.railcraft.common.advancements.criterion.TrackItemPredicate.test(TrackItemPredicate.java:66)
    at net.minecraft.advancements.critereon.InventoryChangeTrigger$Instance.test(SourceFile:104)
    at net.minecraft.advancements.critereon.InventoryChangeTrigger$Listeners.trigger(SourceFile:149)
    at net.minecraft.advancements.critereon.InventoryChangeTrigger.trigger(SourceFile:69)
    at net.minecraft.entity.player.EntityPlayerMP.sendSlotContents(EntityPlayerMP.java:972)
    at net.minecraft.inventory.Container.detectAndSendChanges(Container.java:91)
    at mezz.jei.util.CommandUtilServer.giveToInventory(CommandUtilServer.java:163)
    at mezz.jei.util.CommandUtilServer.executeGive(CommandUtilServer.java:102)
    at mezz.jei.network.packets.PacketGiveItemStack.readPacketData(PacketGiveItemStack.java:46)
    at mezz.jei.network.PacketHandler.lambda$checkThreadAndEnqueue$0(PacketHandler.java:57)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at net.minecraft.util.Util.runTask(Util.java:529)
    ... 5 more

When trying to interact with player's inventory again (obtain another item from JEI for example), the game crashes with the following crashlog:

java.lang.IllegalArgumentException: Cannot set property PropertyDirection{name=facing, clazz=class net.minecraft.util.EnumFacing, values=[north, south, west, east]} to down on block mystgears:crafter_mechanical, it is not an allowed value
    at net.minecraft.block.state.BlockStateContainer$StateImplementation.withProperty(BlockStateContainer.java:235)
    at com.rcx.mystgears.block.BlockMechanicalCrafter.getStateFromMeta(BlockMechanicalCrafter.java:190)
    at mods.railcraft.common.util.inventory.InvTools.getBlockStateFromStack(InvTools.java:488)
    at mods.railcraft.common.blocks.tracks.TrackTools.isRailBlock(TrackTools.java:73)
    at mods.railcraft.common.advancements.criterion.TrackItemPredicate.test(TrackItemPredicate.java:66)
    at net.minecraft.advancements.critereon.InventoryChangeTrigger$Instance.test(SourceFile:104)
    at net.minecraft.advancements.critereon.InventoryChangeTrigger$Listeners.trigger(SourceFile:149)
    at net.minecraft.advancements.critereon.InventoryChangeTrigger.trigger(SourceFile:69)
    at net.minecraft.entity.player.EntityPlayerMP.sendSlotContents(EntityPlayerMP.java:972)
    at net.minecraft.inventory.Container.detectAndSendChanges(Container.java:91)
    at net.minecraft.entity.player.EntityPlayerMP.onUpdate(EntityPlayerMP.java:324)
    at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:1996)
    at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:832)
    at net.minecraft.world.World.updateEntity(World.java:1958)
    at net.minecraft.world.WorldServer.tickPlayers(WorldServer.java:642)
    at net.minecraft.world.World.updateEntities(World.java:1737)
    at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:613)
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:767)
    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:668)
    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:252)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526)
    at java.lang.Thread.run(Thread.java:748)

Please note that similar bug happened in another mod working Mystical Mechanics, here's the link to their issue: https://gitlab.com/Decivex/MechanicalCrafting/-/issues/1, this might help.