From 6ef950041077229514fb68f7ce87d664e3361bb6 Mon Sep 17 00:00:00 2001 From: Nathan Adams Date: Fri, 23 Mar 2012 14:32:00 +0000 Subject: [PATCH] Fixed fatal crash at world generation. --- src/main/java/net/minecraft/server/WorldGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/WorldGenerator.java b/src/main/java/net/minecraft/server/WorldGenerator.java index cd41fa4b17..5787b17e33 100644 --- a/src/main/java/net/minecraft/server/WorldGenerator.java +++ b/src/main/java/net/minecraft/server/WorldGenerator.java @@ -29,7 +29,7 @@ public abstract class WorldGenerator { protected void setTypeAndData(BlockChangeDelegate world, int i, int j, int k, int l, int i1) { if (this.a) { world.setTypeIdAndData(i, j, k, l, i1); - } else if (world instanceof World && ((World)world).getChunkAtWorldCoords(i >> 4, k >> 4).seenByPlayer) { + } else if (world instanceof World && ((World)world).getChunkAtWorldCoords(i, k).seenByPlayer) { // CraftBukkit - remove in next update if (world.setRawTypeIdAndData(i, j, k, l, i1)) { ((World)world).notify(i, j, k); }