Gilly7CE / Carpet-Addons-Not-Found

Addons for the Fabric Carpet mod
MIT License
6 stars 0 forks source link

Refactor PistonBlock_MovableEmptyEndPortalFrameMixin to fix bug #57 #58

Closed Gilly7CE closed 1 year ago

Gilly7CE commented 1 year ago

The getHardnessRedirectmethod has been refactored from a redirect to an injection with the name isMovableEmptyEndPortalFrame. This is called before getHardnessis called in PistonBlock.isMovable and if the rule is enabled and the block meets the criteria it shall be movable.

This has technically made the code simpler anyway, so that's nice.

Bumps mod version to 0.3.1