2015-04-09 05:18:56 +02:00
|
|
|
From afe337d517141f3921fea03e9d954b8f87f6ba8f Mon Sep 17 00:00:00 2001
|
2014-11-28 02:17:45 +01: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
|
2015-02-28 12:36:22 +01:00
|
|
|
index dcd085a..3d08a82 100644
|
2014-11-28 02:17:45 +01:00
|
|
|
--- a/src/main/java/net/minecraft/server/WorldGenPackedIce2.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/WorldGenPackedIce2.java
|
|
|
|
@@ -40,13 +40,13 @@ public class WorldGenPackedIce2 extends WorldGenerator {
|
|
|
|
Block block = world.getType(blockposition.a(i1, k, j1)).getBlock();
|
|
|
|
|
|
|
|
if (block.getMaterial() == Material.AIR || block == Blocks.DIRT || block == Blocks.SNOW || block == Blocks.ICE) {
|
2015-02-28 12:36:22 +01:00
|
|
|
- this.a(world, blockposition.a(i1, k, j1), Blocks.PACKED_ICE.getBlockData());
|
2014-11-28 02:17:45 +01:00
|
|
|
+ world.setTypeUpdate(blockposition.a(i1, k, j1), Blocks.PACKED_ICE.getBlockData()); // Spigot
|
|
|
|
}
|
|
|
|
|
|
|
|
if (k != 0 && l > 1) {
|
|
|
|
block = world.getType(blockposition.a(i1, -k, j1)).getBlock();
|
|
|
|
if (block.getMaterial() == Material.AIR || block == Blocks.DIRT || block == Blocks.SNOW || block == Blocks.ICE) {
|
2015-02-28 12:36:22 +01:00
|
|
|
- this.a(world, blockposition.a(i1, -k, j1), Blocks.PACKED_ICE.getBlockData());
|
2014-11-28 02:17:45 +01:00
|
|
|
+ world.setTypeUpdate(blockposition.a(i1, -k, j1), Blocks.PACKED_ICE.getBlockData()); // Spigot
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@@ -77,7 +77,7 @@ public class WorldGenPackedIce2 extends WorldGenerator {
|
|
|
|
Block block1 = world.getType(blockposition1).getBlock();
|
|
|
|
|
|
|
|
if (block1.getMaterial() == Material.AIR || block1 == Blocks.DIRT || block1 == Blocks.SNOW || block1 == Blocks.ICE || block1 == Blocks.PACKED_ICE) {
|
2015-02-28 12:36:22 +01:00
|
|
|
- this.a(world, blockposition1, Blocks.PACKED_ICE.getBlockData());
|
2014-11-28 02:17:45 +01:00
|
|
|
+ world.setTypeUpdate(blockposition1, Blocks.PACKED_ICE.getBlockData()); // Spigot
|
|
|
|
blockposition1 = blockposition1.down();
|
|
|
|
--l1;
|
|
|
|
if (l1 <= 0) {
|
|
|
|
--
|
|
|
|
2.1.0
|
|
|
|
|