aboutsummaryrefslogtreecommitdiffhomepage
path: root/patch-remap/og/net/minecraft/world/level/block/PowderSnowBlock.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patch-remap/og/net/minecraft/world/level/block/PowderSnowBlock.patch')
-rw-r--r--patch-remap/og/net/minecraft/world/level/block/PowderSnowBlock.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/patch-remap/og/net/minecraft/world/level/block/PowderSnowBlock.patch b/patch-remap/og/net/minecraft/world/level/block/PowderSnowBlock.patch
new file mode 100644
index 0000000000..3897c7400e
--- /dev/null
+++ b/patch-remap/og/net/minecraft/world/level/block/PowderSnowBlock.patch
@@ -0,0 +1,16 @@
+--- a/net/minecraft/world/level/block/PowderSnowBlock.java
++++ b/net/minecraft/world/level/block/PowderSnowBlock.java
+@@ -77,7 +77,12 @@
+
+ entity.setIsInPowderSnow(true);
+ if (!world.isClientSide) {
+- if (entity.isOnFire() && (world.getGameRules().getBoolean(GameRules.RULE_MOBGRIEFING) || entity instanceof EntityHuman) && entity.mayInteract(world, blockposition)) {
++ // CraftBukkit start
++ if (entity.isOnFire() && entity.mayInteract(world, blockposition)) {
++ if (!org.bukkit.craftbukkit.event.CraftEventFactory.callEntityChangeBlockEvent(entity, blockposition, Blocks.AIR.defaultBlockState(), !(world.getGameRules().getBoolean(GameRules.RULE_MOBGRIEFING) || entity instanceof EntityHuman))) {
++ return;
++ }
++ // CraftBukkit end
+ world.destroyBlock(blockposition, false);
+ }
+