forked from Upstream/mmocore
Custom mining regions now respect durability
This commit is contained in:
parent
e92b3e655f
commit
f314627f21
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user