[1.16.4] Crash when clicking obsidian with a Create deployer block
ChloeDawn opened this issue ยท 1 comments
When placing a Create deployer block by obsidian and attempting to click it, the game crashes to desktop.
I was actually trying to automate Flux Networks' flux dust crafting, not matrix enchanting, I don't expect automation support
Mod version: r2.4-294
Forge version: 35.1.36
Caused by: java.lang.NullPointerException
at vazkii.quark.addons.oddities.module.MatrixEnchantingModule.onRightClick(MatrixEnchantingModule.java:169) ~[quark:r2.4-294]
at net.minecraftforge.eventbus.ASMEventHandler_1171_MatrixEnchantingModule_onRightClick_RightClickBlock.invoke(.dynamic) ~[?:?]
at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:85) ~[eventbus-3.0.5-service.jar:?]
at net.minecraftforge.eventbus.EventBus.post(EventBus.java:297) ~[eventbus-3.0.5-service.jar:?]
at net.minecraftforge.common.ForgeHooks.onRightClickBlock(ForgeHooks.java:796) ~[forge:?]
at com.simibubi.create.content.contraptions.components.deployer.DeployerHandler.activateInner(DeployerHandler.java:243) ~[create:mc1.16.3_v0.3c]
at com.simibubi.create.content.contraptions.components.deployer.DeployerHandler.activate(DeployerHandler.java:119) ~[create:mc1.16.3_v0.3c]
at com.simibubi.create.content.contraptions.components.deployer.DeployerTileEntity.activate(DeployerTileEntity.java:261) ~[create:mc1.16.3_v0.3c]
at com.simibubi.create.content.contraptions.components.deployer.DeployerTileEntity.func_73660_a(DeployerTileEntity.java:189) ~[create:mc1.16.3_v0.3c]
at net.minecraft.world.World.func_217391_K(World.java:491) ~[?:?]
at net.minecraft.world.server.ServerWorld.func_72835_b(ServerWorld.java:371) ~[?:?]
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:850) ~[?:?]
... 5 more
This is a bug in Create, they are using a deprecated Forge hook that does not define a RayTraceResult
Although I'm unsure why you are using getHitVec().getPos()
here and not getPos()
when the line below uses getPos()
https://github.com/Creators-of-Create/Create/blob/b1b771ed2ebdc93317a984c07693cc265c579832/src/main/java/com/simibubi/create/content/contraptions/components/deployer/DeployerHandler.java#L243
https://github.com/MinecraftForge/MinecraftForge/blob/f173bde8123d4cc6dfa8015ff9029acbc78d4776/src/main/java/net/minecraftforge/common/ForgeHooks.java#L793
https://github.com/MinecraftForge/MinecraftForge/blob/f173bde8123d4cc6dfa8015ff9029acbc78d4776/src/main/java/net/minecraftforge/event/entity/player/PlayerInteractEvent.java#L155