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:
parent
7da1af0383
commit
66feb7f387
@ -86,7 +86,7 @@ public class BlockListener implements Listener {
|
|||||||
|
|
||||||
// TODO: Protection manager is null in testing environment.
|
// TODO: Protection manager is null in testing environment.
|
||||||
if (!Slimefun.instance().isUnitTest()) {
|
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 != null && !(sfItem instanceof NotPlaceable)) {
|
||||||
if (!sfItem.canUse(e.getPlayer(), true)) {
|
if (!sfItem.canUse(e.getPlayer(), true)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user