mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-25 06:24:24 +00:00
8a54668e453aa254e953654d1ac5ef661cecfe9f
this fixes CrazyPants/EnderIO/#1648 the original way caused problems with items that relied on player.inventory.currentItem, like cables from AE2 - they would set the .currentItem-Stack to null when you placed the last cable, which in our case would kill the pick. Also, we’re now using the bult-in “can we place the item there?” logic and can therefore remove canPlaceBlockOnRightClick. It’s still not perfect though, because it doesn’t work with buckets… see the source-code-comments. A possible solution would be to implement a custom message that we send to ourself to switch back to the original item slot, but I’ll just go with “you’re holding the bucket wrong”.
EnderIO 
All code (excluding the buindled APIs from other mods, which are covered by their respecitive licenses) are released without restriction into the public domain under the CC0 1.0 liscence (http://creativecommons.org/publicdomain/zero/1.0/legalcode) FAQ (https://wiki.creativecommons.org/CC0_FAQ). Do what you want with it, as long as you smile while doing so. While it is not a requirement, it would be nice to know if it is being used and how, so send me hello to crazypants.mc at gmail.com.
###Sound Credits
Most sound attributed under Creative Commons Attribution 3.0 Unported (CC BY 3.0)
Credits:
Languages
Java
100%