geforkt von Mirrors/Paper
SPIGOT-5291: Missing event for ravagers trampling crops
By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Ursprung
8c18f2deaf
Commit
5e5574ba63
@ -27,3 +27,12 @@
|
||||
}
|
||||
|
||||
protected int a(World world) {
|
||||
@@ -125,7 +127,7 @@
|
||||
|
||||
@Override
|
||||
public void a(IBlockData iblockdata, World world, BlockPosition blockposition, Entity entity) {
|
||||
- if (entity instanceof EntityRavager && world.getGameRules().getBoolean(GameRules.MOB_GRIEFING)) {
|
||||
+ if (entity instanceof EntityRavager && !CraftEventFactory.callEntityChangeBlockEvent(entity, blockposition, Blocks.AIR.getBlockData(), !world.getGameRules().getBoolean(GameRules.MOB_GRIEFING)).isCancelled()) { // CraftBukkit
|
||||
world.b(blockposition, true);
|
||||
}
|
||||
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren