mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 11:44:19 +01:00
8398e12b34
By: md_5 <git@md-5.net>
16 lines
923 B
Diff
16 lines
923 B
Diff
--- 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);
|
|
}
|
|
|