Posted December 17, 20159 yr If I use this code, it crashes with an illegalArgumentException, saying that it doesnt exist in block Air. But why it gets block air instead of my block? http://pastebin.com/BakQBBGV I looked in BlockBanner and it uses the same, but it works, but not for me.. Latest log: http://pastebin.com/Tg0xB9zv
December 18, 20159 yr There's a bug in vanilla Minecraft from late 1.7.10 until sometime in 1.8 that calls a block's methods during the act of deletion but after setting the original block to air in the world. This bug is patched by a relatively recent Forge version. Either update to a more recent Forge build or else test for air and implement a default behavior appropriate for when your block has already been deleted. The debugger is a powerful and necessary tool in any IDE, so learn how to use it. You'll be able to tell us more and get better help here if you investigate your runtime problems in the debugger before posting.
December 18, 20159 yr Author I updated to 1635, but it's still the same... Idk why, because it worked in 1.8, but not in 1.8.8
December 18, 20159 yr Hmm... I hate bug regression. You better test for air then, and decide how to handle the condition gracefully (knowing that your block was already broken). The debugger is a powerful and necessary tool in any IDE, so learn how to use it. You'll be able to tell us more and get better help here if you investigate your runtime problems in the debugger before posting.
December 18, 20159 yr Author But my block wasn't broken, cuz it's the setBlockBounds method, this runs when I place my block, or?
December 19, 20159 yr OK, That's a new one. Still, you're being passed air. Use the debugger to find out how/why. Then you'll know what to do after detecting the air. Also: Look carefully to see whether this is happening on client or server. Where's your log file? We're shooting in the dark here, which is probably why none of the other 99 views has chimed in. The debugger is a powerful and necessary tool in any IDE, so learn how to use it. You'll be able to tell us more and get better help here if you investigate your runtime problems in the debugger before posting.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.