Custom mining regions now respect durability

This commit is contained in:
Aria Sangarin 2020-03-04 15:14:03 +01:00
parent e92b3e655f
commit f314627f21
2 changed files with 3 additions and 1 deletions

View File

@ -77,7 +77,8 @@ public class BlockListener implements Listener {
* remove vanilla drops if needed
*/
if (!info.hasVanillaDrops()) {
event.setCancelled(true);
event.setDropItems(false); //May not work
//event.setCancelled(true);
event.getBlock().setType(Material.AIR);
}

View File

@ -122,6 +122,7 @@ public class FishingListener implements Listener {
/*
* lose the catch if the current fish is gone!
*/
//TODO: Cancelling the event also cancels Rod damage (so it's technically unbreakable)
event.setCancelled(true);
if (isTimedOut()) {
close();