mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-27 23:10:16 +01:00
SPIGOT-5526: Call EntityChangeBlockEvent for bees triggering crop growth
This commit is contained in:
parent
b91ce1192a
commit
5c6b0dc6e4
1 changed files with 9 additions and 0 deletions
|
@ -46,6 +46,15 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@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 @@
|
@@ -696,7 +700,7 @@
|
||||||
class i extends EntityBee.a {
|
class i extends EntityBee.a {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue