|
@@ -76,10 +76,11 @@ public class BlockListener implements Listener {
|
|
for (int i = 0; i < bonusCount; i++) {
|
|
for (int i = 0; i < bonusCount; i++) {
|
|
event.getBlock().getWorld().dropItemNaturally(event.getBlockState().getLocation(), is);
|
|
event.getBlock().getWorld().dropItemNaturally(event.getBlockState().getLocation(), is);
|
|
}
|
|
}
|
|
-
|
|
|
|
- event.getBlock().removeMetadata(mcMMO.BONUS_DROPS_METAKEY, plugin);
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ if(event.getBlock().hasMetadata(mcMMO.BONUS_DROPS_METAKEY))
|
|
|
|
+ event.getBlock().removeMetadata(mcMMO.BONUS_DROPS_METAKEY, plugin);
|
|
}
|
|
}
|
|
|
|
|
|
/*@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
|
|
/*@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
|