1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-19 19:25:48 +00:00

change BREAK_BLOCK to PLACE_BLOCK in BlockPlaceEvent

This commit is contained in:
iTwins 2023-08-11 23:29:32 +02:00
parent 7da1af0383
commit 66feb7f387

View File

@ -86,7 +86,7 @@ public class BlockListener implements Listener {
// TODO: Protection manager is null in testing environment.
if (!Slimefun.instance().isUnitTest()) {
Slimefun.getProtectionManager().logAction(e.getPlayer(), e.getBlock(), Interaction.BREAK_BLOCK);
Slimefun.getProtectionManager().logAction(e.getPlayer(), e.getBlock(), Interaction.PLACE_BLOCK);
}
if (sfItem != null && !(sfItem instanceof NotPlaceable)) {
if (!sfItem.canUse(e.getPlayer(), true)) {