mirror of
				https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
				synced 2025-11-01 09:09:36 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			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);
 | 
						|
             }
 | 
						|
 
 |