2014-03-26 20:34:47 +00:00
|
|
|
From d129581369e68f9fbfd0bd45a3de0d42d71d673e Mon Sep 17 00:00:00 2001
|
2013-12-01 06:52:29 +00:00
|
|
|
From: md_5 <md_5@live.com.au>
|
|
|
|
Date: Sun, 1 Dec 2013 17:52:14 +1100
|
|
|
|
Subject: [PATCH] Fix packed ice generation
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/WorldGenPackedIce2.java b/src/main/java/net/minecraft/server/WorldGenPackedIce2.java
|
|
|
|
index c0db754..a830758 100644
|
|
|
|
--- a/src/main/java/net/minecraft/server/WorldGenPackedIce2.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/WorldGenPackedIce2.java
|
|
|
|
@@ -41,13 +41,13 @@ public class WorldGenPackedIce2 extends WorldGenerator {
|
|
|
|
Block block = world.getType(i + l1, j + j1, k + i2);
|
|
|
|
|
|
|
|
if (block.getMaterial() == Material.AIR || block == Blocks.DIRT || block == Blocks.SNOW_BLOCK || block == Blocks.ICE) {
|
|
|
|
- this.setType(world, i + l1, j + j1, k + i2, Blocks.PACKED_ICE);
|
|
|
|
+ world.setTypeUpdate(i + l1, j + j1, k + i2, Blocks.PACKED_ICE); // Spigot
|
|
|
|
}
|
|
|
|
|
|
|
|
if (j1 != 0 && k1 > 1) {
|
|
|
|
block = world.getType(i + l1, j - j1, k + i2);
|
|
|
|
if (block.getMaterial() == Material.AIR || block == Blocks.DIRT || block == Blocks.SNOW_BLOCK || block == Blocks.ICE) {
|
|
|
|
- this.setType(world, i + l1, j - j1, k + i2, Blocks.PACKED_ICE);
|
|
|
|
+ world.setTypeUpdate(i + l1, j - j1, k + i2, Blocks.PACKED_ICE); // Spigot
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@@ -78,7 +78,7 @@ public class WorldGenPackedIce2 extends WorldGenerator {
|
|
|
|
Block block1 = world.getType(i + j2, l1, k + k1);
|
|
|
|
|
|
|
|
if (block1.getMaterial() == Material.AIR || block1 == Blocks.DIRT || block1 == Blocks.SNOW_BLOCK || block1 == Blocks.ICE || block1 == Blocks.PACKED_ICE) {
|
|
|
|
- this.setType(world, i + j2, l1, k + k1, Blocks.PACKED_ICE);
|
|
|
|
+ world.setTypeUpdate(i + j2, l1, k + k1, Blocks.PACKED_ICE); // Spigot
|
|
|
|
--l1;
|
|
|
|
--k2;
|
|
|
|
if (k2 <= 0) {
|
|
|
|
--
|
2014-03-26 20:34:47 +00:00
|
|
|
1.8.5.2.msysgit.0
|
2013-12-01 06:52:29 +00:00
|
|
|
|