2021-06-11 07:00:00 +02:00
|
|
|
--- a/net/minecraft/world/level/block/PowderSnowBlock.java
|
|
|
|
+++ b/net/minecraft/world/level/block/PowderSnowBlock.java
|
2021-11-21 23:00:00 +01:00
|
|
|
@@ -69,7 +69,12 @@
|
2021-06-11 07:00:00 +02:00
|
|
|
|
2021-11-21 23:00:00 +01:00
|
|
|
entity.setIsInPowderSnow(true);
|
2021-06-11 07:00:00 +02:00
|
|
|
if (!world.isClientSide) {
|
2021-11-21 23:00:00 +01:00
|
|
|
- if (entity.isOnFire() && (world.getGameRules().getBoolean(GameRules.RULE_MOBGRIEFING) || entity instanceof EntityHuman) && entity.mayInteract(world, blockposition)) {
|
2021-06-11 07:00:00 +02:00
|
|
|
+ // CraftBukkit start
|
2021-11-21 23:00:00 +01:00
|
|
|
+ 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)).isCancelled()) {
|
2021-06-11 07:00:00 +02:00
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
2021-11-21 23:00:00 +01:00
|
|
|
world.destroyBlock(blockposition, false);
|
2021-06-11 07:00:00 +02:00
|
|
|
}
|
|
|
|
|