Update to Minecraft 1.12-pre5

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2017-05-19 21:00:13 +10:00
parent 5284eb89a3
commit 530fe41851
47 changed files with 222 additions and 283 deletions

View File

@@ -32,7 +32,7 @@
float f;
int i;
@@ -98,6 +106,19 @@
@@ -96,6 +104,19 @@
}
public void a(BlockPosition blockposition, EnumDirection enumdirection) {
@@ -52,7 +52,7 @@
if (this.isCreative()) {
if (!this.world.douseFire((EntityHuman) null, blockposition, enumdirection)) {
this.breakBlock(blockposition);
@@ -125,14 +146,48 @@
@@ -123,14 +144,48 @@
}
}
@@ -103,7 +103,7 @@
if (iblockdata.getMaterial() != Material.AIR && f >= 1.0F) {
this.breakBlock(blockposition);
@@ -150,6 +205,7 @@
@@ -148,6 +203,7 @@
public void a(BlockPosition blockposition) {
if (blockposition.equals(this.f)) {
@@ -111,7 +111,7 @@
int i = this.currentTick - this.lastDigTick;
IBlockData iblockdata = this.world.getType(blockposition);
@@ -167,6 +223,10 @@
@@ -165,6 +221,10 @@
this.j = this.lastDigTick;
}
}
@@ -122,7 +122,7 @@
}
}
@@ -190,13 +250,86 @@
@@ -188,13 +248,86 @@
}
public boolean breakBlock(BlockPosition blockposition) {
@@ -210,7 +210,7 @@
if ((block instanceof BlockCommand || block instanceof BlockStructure) && !this.player.isCreativeAndOp()) {
this.world.notify(blockposition, iblockdata, iblockdata, 3);
return false;
@@ -238,6 +371,12 @@
@@ -236,6 +369,12 @@
}
}
@@ -223,7 +223,7 @@
return flag;
}
}
@@ -280,63 +419,90 @@
@@ -278,63 +417,90 @@
}
}