1
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:
Sfiguz7 2023-08-26 17:29:42 +02:00 committed by GitHub
commit 4c1da3c960
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)) {