Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-15 04:20:04 +01:00
SPIGOT-5526: Call EntityChangeBlockEvent for bees triggering crop growth
Dieser Commit ist enthalten in:
Ursprung
b91ce1192a
Commit
5c6b0dc6e4
@ -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 {
|
||||
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren