Skip to content

Commit

Permalink
chore: closes #892
Browse files Browse the repository at this point in the history
  • Loading branch information
StarWishsama committed Jan 15, 2025
1 parent ba3e0f1 commit 2ec818b
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,6 @@ public void onBlockPlace(BlockPlaceEvent e) {
ItemStack item = e.getItemInHand();
SlimefunItem sfItem = SlimefunItem.getByItem(item);

// TODO: Protection manager is null in testing environment.
if (!Slimefun.instance().isUnitTest()) {
Slimefun.getProtectionManager().logAction(e.getPlayer(), e.getBlock(), Interaction.PLACE_BLOCK);
}

if (sfItem != null && !(sfItem instanceof NotPlaceable)) {
// Fixes #994, should check placed block is equals to item material or not.
if (item.getType() != e.getBlock().getType()) {
Expand Down

0 comments on commit 2ec818b

Please sign in to comment.