OpenBlocks

OpenBlocks

56M Downloads

Sprinkler crash with HungerOverhaul installed

Opened this issue ยท 3 comments

commented

Forge Mod Loader version 5.2.23.738 for Minecraft 1.5.2

Pam HarvestCraft and HungerOverhaul

Using a sprinkler causes this crash:

net.minecraft.util.ReportedException: Ticking tile entity
    at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:660)
    at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:573)
    at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:127)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:470)
    at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:573)
Caused by: java.lang.ClassCastException: iguanaman.hungeroverhaul.IguanaCropPam cannot be cast to mods.PamHarvestCraft.BlockPamCrop
    at mods.PamHarvestCraft.crops.normal.beet.PamBeetBonemealEvent.onUseBonemeal(PamBeetBonemealEvent.java:20)
    at net.minecraftforge.event.ASMEventHandler_59_PamBeetBonemealEvent_onUseBonemeal_BonemealEvent.invoke(.dynamic)
    at net.minecraftforge.event.ASMEventHandler.invoke(ASMEventHandler.java:39)
    at net.minecraftforge.event.EventBus.post(EventBus.java:108)
    at net.minecraft.item.ItemDye.applyBonemeal(ItemDye.java:158)
    at openblocks.common.tileentity.TileEntitySprinkler.attemptFertilize(TileEntitySprinkler.java:60)
    at openblocks.common.tileentity.TileEntitySprinkler.func_70316_g(TileEntitySprinkler.java:113)
    at net.minecraft.world.World.func_72939_s(World.java:2202)
    at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:546)
    at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:654)
    ... 4 more
commented

Yup looks like a pure hunger overhaul issue. I'm just calling bonemeal events exactly as minecraft itself would. It'd be interesting to know if this crash happened when manually bonemealing.

Either way, I'll catch any exceptions.

commented

It actually does not happen with in-game bonemeal, which is strange.

commented

This is probably a hunger overhaul bug, reporting it to that author as well. But it would be nice if you caught this exception anyway.