CraftBook 3

CraftBook 3

139k Downloads

Strack trace for the animal breeder IC

LadyCailinBot opened this issue ยท 1 comments

commented

CRAFTBOOK-2553 - Reported by dddeeefff

I was testing out the animal breeder IC and got this stack trace

16:15:54 [WARNING] [CraftBook] Task #1704682 for CraftBook v2124-c504b61 generated an exception
java.lang.ClassCastException: java.util.Arrays$ArrayList cannot be cast to java.util.ArrayList
        at com.sk89q.craftbook.util.InventoryUtil.doesInventoryContain(InventoryUtil.java:128)
        at com.sk89q.craftbook.circuits.gates.world.entity.AnimalBreeder.breedAnimal(AnimalBreeder.java:143)
        at com.sk89q.craftbook.circuits.gates.world.entity.AnimalBreeder.breed(AnimalBreeder.java:121)
        at com.sk89q.craftbook.circuits.gates.world.entity.AnimalBreeder.trigger(AnimalBreeder.java:76)
        at com.sk89q.craftbook.circuits.ic.ICMechanic$1.run(ICMechanic.java:103)
        at org.bukkit.craftbukkit.v1_5_R3.scheduler.CraftTask.run(CraftTask.java:67)
        at org.bukkit.craftbukkit.v1_5_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:344)
        at net.minecraft.server.v1_5_R3.MinecraftServer.r(MinecraftServer.java:509)
        at net.minecraft.server.v1_5_R3.DedicatedServer.r(DedicatedServer.java:224)
        at net.minecraft.server.v1_5_R3.MinecraftServer.q(MinecraftServer.java:472)
        at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:404)
        at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573)

This may be too much info, but he is a description of how I used the sign:
The setup - a suspended flat grass platform with a fence permitter, cows spawned with a spawn egg on the inside. Stone block on top of the ground with [mc1280] or [mc0280] on the sign. Chest above the sign with 3 stacks of wheat in the top left corner of the chest. two redstone wires on top of the grass plain leading directly to sign with a torch placed at the end. The signal is flicked on/off manually by a block break of either the torch or the redstone. The stack trace seems to be generated continuously by the ST version, and, for the triggered version, one stack trace after redstone activation.

commented

Comment by me4502

Fixed.