summaryrefslogtreecommitdiffstats
path: root/src/main/java/net
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/net')
-rw-r--r--src/main/java/net/minecraft/server/WorldGenerator.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/WorldGenerator.java b/src/main/java/net/minecraft/server/WorldGenerator.java
index 320a1944..5941f291 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
}
}
}