MLG-Fortress / ExtraHardMode

The now-official repository for the ExtraHardMode Bukkit Plugin.
http://dev.bukkit.org/bukkit-plugins/fun-hard-mode/
Other
24 stars 19 forks source link

[Fix] bug that we can attach torch via grass #239

Closed LazyGon closed 3 years ago

LazyGon commented 3 years ago

Now we cannot put torch in this case.

Before, EHM checked block against placed block. When we click grass, placeEvent.getBlockAgainst() returns WALL_TORCH. This is because clicked block was grass. But real location on which torch will be placed is grass location. Like this. As a result, EHM think "Clicked block was not soft, torch can be attached here".