papermc/CraftBukkit-Patches/0047-Fix-packed-ice-generation.patch

39 lines
2.4 KiB
Diff
Raw Normal View History

From f0d250f577da79657fec78fcdc267d3b4b221653 Mon Sep 17 00:00:00 2001
2014-11-28 01:17:45 +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
2015-02-28 11:36:22 +00:00
index dcd085a..3d08a82 100644
2014-11-28 01:17:45 +00: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 11:36:22 +00:00
- this.a(world, blockposition.a(i1, k, j1), Blocks.PACKED_ICE.getBlockData());
2014-11-28 01:17:45 +00: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 11:36:22 +00:00
- this.a(world, blockposition.a(i1, -k, j1), Blocks.PACKED_ICE.getBlockData());
2014-11-28 01:17:45 +00: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 11:36:22 +00:00
- this.a(world, blockposition1, Blocks.PACKED_ICE.getBlockData());
2014-11-28 01:17:45 +00:00
+ world.setTypeUpdate(blockposition1, Blocks.PACKED_ICE.getBlockData()); // Spigot
blockposition1 = blockposition1.down();
--l1;
if (l1 <= 0) {
--
2015-05-09 20:23:26 +00:00
2.1.4
2014-11-28 01:17:45 +00:00