@@ -146,7 +146,7 @@
|
||||
} else {
|
||||
Chunk chunk = this.getChunkAtWorldCoords(blockposition);
|
||||
Block block = iblockdata.getBlock();
|
||||
- IBlockData iblockdata1 = chunk.a(blockposition, iblockdata, (i & 64) != 0);
|
||||
- IBlockData iblockdata1 = chunk.setType(blockposition, iblockdata, (i & 64) != 0);
|
||||
+
|
||||
+ // CraftBukkit start - capture blockstates
|
||||
+ CraftBlockState blockstate = null;
|
||||
@@ -156,7 +156,7 @@
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
+
|
||||
+ IBlockData iblockdata1 = chunk.a(blockposition, iblockdata, (i & 64) != 0, (i & 1024) == 0); // CraftBukkit custom NO_PLACE flag
|
||||
+ IBlockData iblockdata1 = chunk.setType(blockposition, iblockdata, (i & 64) != 0, (i & 1024) == 0); // CraftBukkit custom NO_PLACE flag
|
||||
|
||||
if (iblockdata1 == null) {
|
||||
+ // CraftBukkit start - remove blockstate if failed
|
||||
@@ -335,7 +335,7 @@
|
||||
+ if (vehicle != null) {
|
||||
+ vehicle.dead = true;
|
||||
+ }
|
||||
+ for (Entity passenger : entity.bQ()) {
|
||||
+ for (Entity passenger : entity.getAllPassengers()) {
|
||||
+ passenger.dead = true;
|
||||
+ }
|
||||
+ entity.dead = true;
|
||||
@@ -595,7 +595,7 @@
|
||||
|
||||
if (predicate.test(entityhuman1)) {
|
||||
double d5 = entityhuman1.d(d0, d1, d2);
|
||||
@@ -2164,6 +2475,16 @@
|
||||
@@ -2185,6 +2496,16 @@
|
||||
|
||||
public void everyoneSleeping() {}
|
||||
|
||||
@@ -612,7 +612,7 @@
|
||||
public float g(float f) {
|
||||
return (this.q + (this.r - this.q) * f) * this.i(f);
|
||||
}
|
||||
@@ -2325,7 +2646,7 @@
|
||||
@@ -2346,7 +2667,7 @@
|
||||
int l = j * 16 + 8 - blockposition.getZ();
|
||||
boolean flag = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user