remove burtned TNT blocks (Fixes #2808)

This commit is contained in:
Shane Freeder 2019-12-30 12:49:48 +00:00
parent 24f4c7016a
commit 1d4ac6014d

View File

@ -5,7 +5,7 @@ Subject: [PATCH] Add TNTPrimeEvent
diff --git a/src/main/java/net/minecraft/server/BlockFire.java b/src/main/java/net/minecraft/server/BlockFire.java
index 0ece78d4dc..3400e7ce37 100644
index 0ece78d4dc..1c30a02501 100644
--- a/src/main/java/net/minecraft/server/BlockFire.java
+++ b/src/main/java/net/minecraft/server/BlockFire.java
@@ -0,0 +0,0 @@ package net.minecraft.server;
@ -34,6 +34,7 @@ index 0ece78d4dc..3400e7ce37 100644
+ if (!new TNTPrimeEvent(tntBlock, TNTPrimeEvent.PrimeReason.FIRE, null).callEvent()) {
+ return;
+ }
+ world.setAir(blockposition, false);
+ // Paper end
BlockTNT.a(world, blockposition);
}