Added XP-removing on drop prevention
This commit is contained in:
parent
b823dc24a1
commit
cf028eb2dd
1 changed files with 2 additions and 0 deletions
|
@ -59,6 +59,8 @@ public class BlockListener extends Listener {
|
|||
// prevent any drops for survival players in creative regions
|
||||
if (player.getGameMode() != GameMode.CREATIVE && getRM().getRegionSet(block).getFlag(Flags.GAMEMODE) == GameMode.CREATIVE) {
|
||||
mod.getBlockSpawn().block(block, player);
|
||||
if (event instanceof BlockBreakEvent)
|
||||
((BlockBreakEvent) event).setExpToDrop(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue