CraftBook 3

CraftBook 3

139k Downloads

Failed to think for SelfTriggeredICMechanic

LadyCailinBot opened this issue ยท 3 comments

commented

CRAFTBOOK-2655 - Reported by ziccorp

Using the latest dev build #2488. Getting a recurring problem with an error message that is spamming the console. Happens after an hour or so of server runtime.

2013-07-21 18:13:29 [WARNING] CraftBook mechanic: Failed to think for SelfTriggeredICMechanic
2013-07-21 18:13:29 [SEVERE] [CraftBook] java.lang.ClassCastException: org.bukkit.craftbukkit.v1_6_R2.block.CraftHopper cannot be cast to org.bukkit.block.Chest
at com.sk89q.craftbook.circuits.gates.world.items.ContainerStocker.stock(ContainerStocker.java:67)
at com.sk89q.craftbook.circuits.gates.world.items.ContainerStocker.think(ContainerStocker.java:60)
at com.sk89q.craftbook.circuits.ic.SelfTriggeredICMechanic.think(SelfTriggeredICMechanic.java:44)
at com.sk89q.craftbook.MechanicManager.think(MechanicManager.java:661)
at com.sk89q.craftbook.MechanicClock.run(MechanicClock.java:26)
at org.bukkit.craftbukkit.v1_6_R2.scheduler.CraftTask.run(CraftTask.java:53)
at org.bukkit.craftbukkit.v1_6_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345)
at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:522)
at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:226)
at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:486)
at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:419)
at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)

The last build my server was using was #2180, I have rolled back to this build and the error does not occur.

commented

Comment by me4502

This isn't an error introduced in that build of CraftBook. It is a ContainerStocker seeing a Hopper as a Chest, then trying to use it?
I'll make sure it allows hoppers.

commented

Comment by me4502

Fixed.

commented

Comment by ziccorp

Didn't know if it related to the build or not. Just was trying to give you the most information. Build 2492 loaded, thanks for always being on top of this stuff!