aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0778-Fire-EntityChangeBlockEvent-in-more-places.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/server/0778-Fire-EntityChangeBlockEvent-in-more-places.patch')
-rw-r--r--patches/server/0778-Fire-EntityChangeBlockEvent-in-more-places.patch17
1 files changed, 0 insertions, 17 deletions
diff --git a/patches/server/0778-Fire-EntityChangeBlockEvent-in-more-places.patch b/patches/server/0778-Fire-EntityChangeBlockEvent-in-more-places.patch
index 5d703466dc..ce2102d524 100644
--- a/patches/server/0778-Fire-EntityChangeBlockEvent-in-more-places.patch
+++ b/patches/server/0778-Fire-EntityChangeBlockEvent-in-more-places.patch
@@ -79,23 +79,6 @@ index a298f511c8a7eb208a0dd63b24ec050848a31476..41a3ca4edf4fa662f2af13efd7b78b56
world.setBlockAndUpdate(blockposition1Final, iblockdata1); // CraftBukkit - decompile error
});
world.levelEvent(3002, blockposition1, -1);
-diff --git a/src/main/java/net/minecraft/world/entity/ai/behavior/TryLaySpawnOnWaterNearLand.java b/src/main/java/net/minecraft/world/entity/ai/behavior/TryLaySpawnOnWaterNearLand.java
-index 2c443b421e342ebfbdf941a431ba20560521920b..91b68ee3605afdb845405e455c869e48a7fc9aab 100644
---- a/src/main/java/net/minecraft/world/entity/ai/behavior/TryLaySpawnOnWaterNearLand.java
-+++ b/src/main/java/net/minecraft/world/entity/ai/behavior/TryLaySpawnOnWaterNearLand.java
-@@ -27,6 +27,12 @@ public class TryLaySpawnOnWaterNearLand {
- BlockPos blockPos3 = blockPos2.above();
- if (world.getBlockState(blockPos3).isAir()) {
- BlockState blockState = frogSpawn.defaultBlockState();
-+ // Paper start
-+ if (!org.bukkit.craftbukkit.event.CraftEventFactory.callEntityChangeBlockEvent(entity, blockPos3, blockState)) {
-+ isPregnant.erase(); // forgot pregnant memory
-+ return true;
-+ }
-+ // Paper end
- world.setBlock(blockPos3, blockState, 3);
- world.gameEvent(GameEvent.BLOCK_PLACE, blockPos3, GameEvent.Context.of(entity, blockState));
- world.playSound((Player)null, entity, SoundEvents.FROG_LAY_SPAWN, SoundSource.BLOCKS, 1.0F, 1.0F);
diff --git a/src/main/java/net/minecraft/world/item/AxeItem.java b/src/main/java/net/minecraft/world/item/AxeItem.java
index db507638a97b5a33df712c54daff35b21922c0dd..2e75fd06e9e379eb95ebfe55086ffc327706ab2f 100644
--- a/src/main/java/net/minecraft/world/item/AxeItem.java