diff --git a/src/main/java/com/onaple/harvester/HarvestListener.java b/src/main/java/com/onaple/harvester/HarvestListener.java index f39f5e8..4d37725 100644 --- a/src/main/java/com/onaple/harvester/HarvestListener.java +++ b/src/main/java/com/onaple/harvester/HarvestListener.java @@ -49,12 +49,11 @@ public void onBlockBreakEvent(ChangeBlockEvent.Break event) { } /** - * prevent wheat growing. - * @param event + * Prevent growing event + * @param event Event happening when stuff grows */ @Listener - public void onBlockGrowEvent(ChangeBlockEvent.Modify event){ - //event.getTransactions().stream().forEach(blockSnapshotTransaction -> Harvester.getLogger().info(blockSnapshotTransaction.getDefault().toString())); + public void onBlockGrowEvent(ChangeBlockEvent.Modify.Grow event){ event.setCancelled(true); }