geforkt von Mirrors/Paper
remove burtned TNT blocks (Fixes #2808)
Dieser Commit ist enthalten in:
Ursprung
92933b162c
Commit
7530141468
@ -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 <mikroskeem@mikroskeem.eu>
|
||||
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);
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren