I was playing around with windmills and when i tried to make a "cable-pole" I saw that when it could not become any taller the cables would still be consumed when I tried to place them. This happened to both tin and copper cables.
Bug: When trying to place cable at the top of the world the cable will be consumed without being placed
-
-
Pretty sure this happens with any block.
-
Pretty sure this happens with any block.
I think it only occurs with items that place blocks, which I cannot think of any in the real game, torches don't even count btw. -
The cable placement code does need some work. I didn't know this was happening with it though, thanks for reporting.
-
It's related to me assuming that noone attempts to place stuff in pseudo-invalid locations.
But if you insist, somebody merely needs to use the boolean return of world.setBlock and link the stacksize-- into that.