mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-19 19:25:48 +00:00
Merge pull request #3944 from iTwins/fix/protection_manager_place_block
This commit is contained in:
commit
4c1da3c960
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user