mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-25 09:41:29 +01:00
SPIGOT-5526: Call EntityChangeBlockEvent for bees triggering crop growth
By: md_5 <git@md-5.net>
This commit is contained in:
parent
d862f0fa87
commit
09a2fa4d96
@ -46,6 +46,15 @@
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -681,7 +685,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
- if (flag) {
|
||||
+ if (flag && !org.bukkit.craftbukkit.event.CraftEventFactory.callEntityChangeBlockEvent(EntityBee.this, blockposition, iblockdata.set(blockstateinteger, (Integer) iblockdata.get(blockstateinteger) + 1)).isCancelled()) { // Spigot
|
||||
EntityBee.this.world.triggerEffect(2005, blockposition, 0);
|
||||
EntityBee.this.world.setTypeUpdate(blockposition, (IBlockData) iblockdata.set(blockstateinteger, (Integer) iblockdata.get(blockstateinteger) + 1));
|
||||
EntityBee.this.eO();
|
||||
@@ -696,7 +700,7 @@
|
||||
class i extends EntityBee.a {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user