mirror of
https://github.com/PaperMC/Paper.git
synced 2025-07-31 04:02:06 -07:00
@@ -1,4 +1,4 @@
|
||||
From e15463f906861778a9a2c9a62155c6f226330b10 Mon Sep 17 00:00:00 2001
|
||||
From fa744ba52455d9b4bd030e6b23d6cf4fb294621a Mon Sep 17 00:00:00 2001
|
||||
From: md_5 <md_5@live.com.au>
|
||||
Date: Tue, 2 Jul 2013 13:13:29 +1000
|
||||
Subject: [PATCH] mc-dev imports
|
||||
@@ -6,7 +6,7 @@ Subject: [PATCH] mc-dev imports
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/BlockTNT.java b/src/main/java/net/minecraft/server/BlockTNT.java
|
||||
new file mode 100644
|
||||
index 0000000..d336901
|
||||
index 0000000..9acd4f2
|
||||
--- /dev/null
|
||||
+++ b/src/main/java/net/minecraft/server/BlockTNT.java
|
||||
@@ -0,0 +1,80 @@
|
||||
@@ -65,10 +65,10 @@ index 0000000..d336901
|
||||
+ }
|
||||
+
|
||||
+ public boolean interact(World world, int i, int j, int k, EntityHuman entityhuman, int l, float f, float f1, float f2) {
|
||||
+ if (entityhuman.bx() != null && entityhuman.bx().id == Item.FLINT_AND_STEEL.id) {
|
||||
+ if (entityhuman.by() != null && entityhuman.by().id == Item.FLINT_AND_STEEL.id) {
|
||||
+ this.a(world, i, j, k, 1, entityhuman);
|
||||
+ world.setAir(i, j, k);
|
||||
+ entityhuman.bx().damage(1, entityhuman);
|
||||
+ entityhuman.by().damage(1, entityhuman);
|
||||
+ return true;
|
||||
+ } else {
|
||||
+ return super.interact(world, i, j, k, entityhuman, l, f, f1, f2);
|
||||
|
Reference in New Issue
Block a user