diff --git a/Spigot-Server-Patches/0268-Add-TNTPrimeEvent.patch b/Spigot-Server-Patches/0268-Add-TNTPrimeEvent.patch index d4a01163f..ad1fda921 100644 --- a/Spigot-Server-Patches/0268-Add-TNTPrimeEvent.patch +++ b/Spigot-Server-Patches/0268-Add-TNTPrimeEvent.patch @@ -1,11 +1,11 @@ -From abeb999a469ba9faf3872c1b4dcb155e9abe635f Mon Sep 17 00:00:00 2001 +From e5230fca3c9f34ee93c4adcd1bff9768665d229b Mon Sep 17 00:00:00 2001 From: Mark Vainomaa Date: Mon, 16 Jul 2018 00:05:05 +0300 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 @@ -2,6 +2,7 @@ package net.minecraft.server; @@ -25,7 +25,7 @@ index 0ece78d4dc..3400e7ce37 100644 } Block block = iblockdata.getBlock(); -@@ -245,6 +246,12 @@ public class BlockFire extends Block { +@@ -245,6 +246,13 @@ public class BlockFire extends Block { if (block instanceof BlockTNT) { BlockTNT blocktnt = (BlockTNT) block; @@ -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); }