-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Minor
-
None
-
Affects Version/s: None
-
None
-
This server is running CraftBukkit version 3397-Spigot-f4ff00f-f3828bb (MC: 1.18.1) (Implementing API version 1.18.1-R0.1-SNAPSHOT)
-
Yes
public class TestPlugin extends JavaPlugin implements Listener { @Override public void onEnable() { getLogger().info("Test plugin loaded"); Bukkit.getPluginManager().registerEvents(this, this); } @EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = true) public void onSaplingPlace(BlockPlaceEvent e) { Block b = e.getBlock(); if (Tag.SAPLINGS.isTagged(b.getType())) { for (int i = 0; i < 100; i++) { b.applyBoneMeal(BlockFace.UP); // Just do it enough to induce growth } } } @EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = true) public void onTreeGrow(StructureGrowEvent e) { getLogger().info("This never gets called as a result of the growth even though the bonemeal works"); } }
It'd be useful to have structures grown using the applyBoneMeal() method fire the StructureGrowthEvent.