craftbukkit/nms-patches/net/minecraft/world/level/block/PowderSnowBlock.patch

17 lines
923 B
Diff
Raw Normal View History

2021-06-11 15:00:00 +10:00
--- a/net/minecraft/world/level/block/PowderSnowBlock.java
+++ b/net/minecraft/world/level/block/PowderSnowBlock.java
2023-12-06 03:40:00 +11:00
@@ -77,7 +77,12 @@
2021-06-11 15:00:00 +10:00
2021-11-22 09:00:00 +11:00
entity.setIsInPowderSnow(true);
2021-06-11 15:00:00 +10:00
if (!world.isClientSide) {
2021-11-22 09:00:00 +11:00
- if (entity.isOnFire() && (world.getGameRules().getBoolean(GameRules.RULE_MOBGRIEFING) || entity instanceof EntityHuman) && entity.mayInteract(world, blockposition)) {
2021-06-11 15:00:00 +10:00
+ // CraftBukkit start
2021-11-22 09:00:00 +11:00
+ if (entity.isOnFire() && entity.mayInteract(world, blockposition)) {
2023-06-24 17:15:05 +10:00
+ if (!org.bukkit.craftbukkit.event.CraftEventFactory.callEntityChangeBlockEvent(entity, blockposition, Blocks.AIR.defaultBlockState(), !(world.getGameRules().getBoolean(GameRules.RULE_MOBGRIEFING) || entity instanceof EntityHuman))) {
2021-06-11 15:00:00 +10:00
+ return;
+ }
+ // CraftBukkit end
2021-11-22 09:00:00 +11:00
world.destroyBlock(blockposition, false);
2021-06-11 15:00:00 +10:00
}