Fix decompile error resulting in broken TNT!
Dieser Commit ist enthalten in:
Ursprung
7509839cdf
Commit
4edd7598b8
@ -1,4 +1,4 @@
|
|||||||
From a8c84748c5cacdf747f752eeaa46a42f1b636dc9 Mon Sep 17 00:00:00 2001
|
From cacda76247284c121897d7db87e42868b7cf5377 Mon Sep 17 00:00:00 2001
|
||||||
From: BlackHole <black-hole@live.com>
|
From: BlackHole <black-hole@live.com>
|
||||||
Date: Tue, 16 Jul 2013 22:34:50 +0200
|
Date: Tue, 16 Jul 2013 22:34:50 +0200
|
||||||
Subject: [PATCH] Call EntityChangeBlockEvent for Fire Arrows hitting TNT
|
Subject: [PATCH] Call EntityChangeBlockEvent for Fire Arrows hitting TNT
|
||||||
@ -6,9 +6,18 @@ Subject: [PATCH] Call EntityChangeBlockEvent for Fire Arrows hitting TNT
|
|||||||
Adds BUKKIT-4355
|
Adds BUKKIT-4355
|
||||||
|
|
||||||
diff --git a/src/main/java/net/minecraft/server/BlockTNT.java b/src/main/java/net/minecraft/server/BlockTNT.java
|
diff --git a/src/main/java/net/minecraft/server/BlockTNT.java b/src/main/java/net/minecraft/server/BlockTNT.java
|
||||||
index d336901..9ca1050 100644
|
index 9acd4f2..312b4c8 100644
|
||||||
--- a/src/main/java/net/minecraft/server/BlockTNT.java
|
--- a/src/main/java/net/minecraft/server/BlockTNT.java
|
||||||
+++ b/src/main/java/net/minecraft/server/BlockTNT.java
|
+++ b/src/main/java/net/minecraft/server/BlockTNT.java
|
||||||
|
@@ -54,7 +54,7 @@ public class BlockTNT extends Block {
|
||||||
|
|
||||||
|
public boolean interact(World world, int i, int j, int k, EntityHuman entityhuman, int l, float f, float f1, float f2) {
|
||||||
|
if (entityhuman.by() != null && entityhuman.by().id == Item.FLINT_AND_STEEL.id) {
|
||||||
|
- this.a(world, i, j, k, 1, entityhuman);
|
||||||
|
+ this.a(world, i, j, k, 1, (EntityLiving) entityhuman); // Spigot - Fix decompile error!
|
||||||
|
world.setAir(i, j, k);
|
||||||
|
entityhuman.by().damage(1, entityhuman);
|
||||||
|
return true;
|
||||||
@@ -68,6 +68,11 @@ public class BlockTNT extends Block {
|
@@ -68,6 +68,11 @@ public class BlockTNT extends Block {
|
||||||
EntityArrow entityarrow = (EntityArrow) entity;
|
EntityArrow entityarrow = (EntityArrow) entity;
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren