Skip to content

Commit

Permalink
change BREAK_BLOCK to PLACE_BLOCK in BlockPlaceEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
iTwins committed Aug 11, 2023
1 parent 7da1af0 commit 66feb7f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public void onBlockPlace(BlockPlaceEvent e) {

// 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)) {
Expand Down

0 comments on commit 66feb7f

Please sign in to comment.