Update to MC 1.12-pre2
This commit is contained in:
@@ -7,7 +7,7 @@ This causes the nether to spam unload/reload chunks, plus overall
|
||||
bad behavior.
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/BlockFire.java b/src/main/java/net/minecraft/server/BlockFire.java
|
||||
index 94cb9d462..dfc328850 100644
|
||||
index 74c76fd6b..36df22215 100644
|
||||
--- a/src/main/java/net/minecraft/server/BlockFire.java
|
||||
+++ b/src/main/java/net/minecraft/server/BlockFire.java
|
||||
@@ -0,0 +0,0 @@ public class BlockFire extends Block {
|
||||
@@ -22,12 +22,10 @@ index 94cb9d462..dfc328850 100644
|
||||
}
|
||||
|
||||
private void a(World world, BlockPosition blockposition, int i, Random random, int j, BlockPosition sourceposition) { // CraftBukkit add sourceposition
|
||||
- int k = this.c(world.getType(blockposition).getBlock());
|
||||
+ // Paper start
|
||||
+ final IBlockData iblockdata = world.getTypeIfLoaded(blockposition);
|
||||
+ if (iblockdata == null) return;
|
||||
+ int k = this.c(iblockdata.getBlock());
|
||||
+ // Paper end
|
||||
int k = this.e(world.getType(blockposition).getBlock());
|
||||
|
||||
if (random.nextInt(i) < k) {
|
||||
- IBlockData iblockdata = world.getType(blockposition);
|
||||
@@ -39,11 +37,9 @@ index 94cb9d462..dfc328850 100644
|
||||
for (int k = 0; k < j; ++k) {
|
||||
EnumDirection enumdirection = aenumdirection[k];
|
||||
|
||||
- i = Math.max(this.d(world.getType(blockposition.shift(enumdirection)).getBlock()), i);
|
||||
+ final IBlockData type = world.getTypeIfLoaded(blockposition.shift(enumdirection)); // Paper
|
||||
+ if (type == null) continue; // Paper
|
||||
+ i = Math.max(this.d(type.getBlock()), i); // Paper
|
||||
i = Math.max(this.f(world.getType(blockposition.shift(enumdirection)).getBlock()), i);
|
||||
}
|
||||
|
||||
return i;
|
||||
--
|
||||
Reference in New Issue
Block a user