chaseoes / DwarfForge

Plugin for the CraftBukkit Minecraft server
http://dev.bukkit.org/server-mods/dwarfforge/
2 stars 3 forks source link

Causes NPE from time to time #9

Open dredhorse opened 12 years ago

dredhorse commented 12 years ago

[WARNING] Task of 'DwarfForge' generated an exception java.lang.ClassCastException: org.bukkit.craftbukkit.block.CraftBlockState cannot be cast to org.bukkit.block.Furnace at org.simiancage.bukkit.DwarfForge.Forge.douse(Forge.java:149) at org.simiancage.bukkit.DwarfForge.Forge.update(Forge.java:346) at org.simiancage.bukkit.DwarfForge.Forge.run(Forge.java:368) at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:502) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:434) at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)

lipe123 commented 12 years ago

I just got this same error tonight, I tracked down the last used DF and had the owner break it and rebuild it and for now the error is gone but I'm not convinced. The error still showed up after the forge was destroyed.

Its probably related to a corruption in the world save or something, isnt there a way to gracefully handle this? maybe do a check if the block is a furnace like it should be and put a xyz coord of where the bad furnace is?

This is with the latest DF.. ugh whats the ver# 2.11

dredhorse commented 12 years ago

hmm... thanks... will take a look again at it..