ClassCastException after using //copy and //paste
LadyCailinBot opened this issue ยท 7 comments
CRAFTBOOK-2266 - Reported by Ardragoon
i tried to copy 450 blocks. in this "building" there are 2 noteblocks. everytime
i //paste this thing enywhere this error appears.
the gameplay dont stop, theres only a 2 sec lag.
my mc version is 1.4.5 with the latest craftbook wordguard and worldedit versions.
i tried to copy only noteblocks. and its worked without a problem.
if i try to copy noteblocks who are connectet to redstone (like my doorbell)
this error appears.
2012-11-29 14:42:58 [WARNING] [CraftBookCircuits] Task #113589 for CraftBookCircuits v1300-f6a5393 generated an exception
java.lang.ClassCastException: org.bukkit.craftbukkit.block.CraftNoteBlock cannot be cast to org.bukkit.block.Sign
at com.sk89q.craftbook.bukkit.BukkitUtil.toChangedSign(BukkitUtil.java:53)
at com.sk89q.craftbook.ic.ICMechanic$1.run(ICMechanic.java:81)
at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:53)
at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345)
at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:530)
at net.minecraft.server.DedicatedServer.r(DedicatedServer.java:222)
at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:494)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:426)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:856)
2012-11-29 14:42:58 [WARNING] [CraftBookCircuits] Task #113575 for CraftBookCircuits v1300-f6a5393 generated an exception
java.lang.ClassCastException: org.bukkit.craftbukkit.block.CraftNoteBlock cannot be cast to org.bukkit.block.Sign
at com.sk89q.craftbook.bukkit.BukkitUtil.toChangedSign(BukkitUtil.java:53)
at com.sk89q.craftbook.ic.ICMechanic$1.run(ICMechanic.java:81)
at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:53)
at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345)
at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:530)
at net.minecraft.server.DedicatedServer.r(DedicatedServer.java:222)
at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:494)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:426)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:856)
greets
ardragoon
Comment by me4502
This is more of a one off thing that was caused by specific circumstances of WorldEdit. It is more a bug in minecraft, and the cause of WorldEdit sometimes crashing the client.
Comment by Ardragoon
k thx for your answer. so i still have to wait for craftbukkit updates ;)
i ceep n eye on that problem ;)
greets
ardragoon
Comment by Dark_Arc
Shouldn't it check to make sure it's actually a sign...?