samolego / GolfIV

An anti-exploit attempt for Fabric
https://modrinth.com/mod/golfiv
MIT License
49 stars 13 forks source link

Add prevention of destruction by headless pistons. #42

Closed Ampflower closed 3 years ago

Ampflower commented 3 years ago

This allows server owners to disable pistons being able to break any blocks by adding a check to see if the would-be head is actually a piston head. Direction isn't tested, but could be added on if need be.

Ampflower commented 3 years ago

Thinking about the naming the property some more; perhaps it would be better to be more broad, since there could be more than just pistons? A name that could work would be preventPermanentWorldDestructionExploits, or a bit more simply preventWorldDestructionExploits. Which should it be?

samolego commented 3 years ago

Thank you so much for the contribution!

I think's it's alright to leave the name to be piston related. If a new destruction exploit is found (e.g. plant one), it can simply be added as another option. Imho grouping more patches under same option (as it is rn) has proven not to be the best option :P.