Crossroads-Development / Essentials

Essentials is a mod for Minecraft. It adds a few simple utility-style blocks and items, mostly meant to enhance vanilla-style automation.
MIT License
11 stars 10 forks source link

Fix several blocks not removing their tile entities when broken #58

Closed hedgehog1029 closed 3 years ago

hedgehog1029 commented 3 years ago

The redstone transmitter & redstone receiver were failing to clean up their tile entities when broken due to a missing super-call.

This likely caused #53, and can also cause a crash (example: http://dpaste.com/553NGDSVS) if another block expecting to have a tile entity is later placed in the position previously occupied by a transmitter or receiver, as the game does not replace tile entities if one already exists.

I also added the super-call to MultiPistonBase even though it's not required; might avoid an issue later on. There is a bit of noise in the commit due to reformatting that method a little (should just be whitespace changes).