From 708b0e6ae1fc3b545fc423ebe5eb9cdb67be7efb Mon Sep 17 00:00:00 2001 From: Travis Watkins Date: Tue, 16 Apr 2013 07:09:32 -0500 Subject: [PATCH] Don't do physics updates in world generation. Fixes BUKKIT-3747 --- src/main/java/net/minecraft/server/WorldGenerator.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/WorldGenerator.java b/src/main/java/net/minecraft/server/WorldGenerator.java index 320a1944e0..5941f291ed 100644 --- a/src/main/java/net/minecraft/server/WorldGenerator.java +++ b/src/main/java/net/minecraft/server/WorldGenerator.java @@ -30,7 +30,13 @@ public abstract class WorldGenerator { if (this.a) { world.setTypeIdAndData(i, j, k, l, i1); } else { - world.setTypeIdAndData(i, j, k, l, i1); + // CraftBukkit start - Layering violation :( + if (world instanceof World) { + ((World) world).setTypeIdAndData(i, j, k, l, i1, 2); + } else { + world.setRawTypeIdAndData(i, j, k, l, i1); + } + // CraftBukkit end } } }