diff options
author | mbax <matt@phozop.net> | 2013-11-04 07:07:38 -0600 |
---|---|---|
committer | Wesley Wolfe <weswolf@aol.com> | 2013-11-30 19:26:12 -0600 |
commit | 2726696652179a5ead7dc07dd39edf7dfda687f7 (patch) | |
tree | ff78e22fdd4fc01889a5f6cc482b599f965cd93a /src/main/java/net/minecraft/server/WorldGenerator.java | |
parent | ff8b70fbb7a96b9d2ff078afcf3b3ff90f200981 (diff) | |
download | craftbukkit-2726696652179a5ead7dc07dd39edf7dfda687f7.tar craftbukkit-2726696652179a5ead7dc07dd39edf7dfda687f7.tar.gz craftbukkit-2726696652179a5ead7dc07dd39edf7dfda687f7.tar.lz craftbukkit-2726696652179a5ead7dc07dd39edf7dfda687f7.tar.xz craftbukkit-2726696652179a5ead7dc07dd39edf7dfda687f7.zip |
Update CraftBukkit to Minecraft 1.7.2
Diffstat (limited to 'src/main/java/net/minecraft/server/WorldGenerator.java')
-rw-r--r-- | src/main/java/net/minecraft/server/WorldGenerator.java | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/main/java/net/minecraft/server/WorldGenerator.java b/src/main/java/net/minecraft/server/WorldGenerator.java index ffb18f7f..f79a0fba 100644 --- a/src/main/java/net/minecraft/server/WorldGenerator.java +++ b/src/main/java/net/minecraft/server/WorldGenerator.java @@ -2,7 +2,7 @@ package net.minecraft.server; import java.util.Random; -import org.bukkit.BlockChangeDelegate; // CraftBukkit +import org.bukkit.craftbukkit.CraftBlockChangeDelegate; // CraftBukkit public abstract class WorldGenerator { @@ -21,21 +21,20 @@ public abstract class WorldGenerator { public void a(double d0, double d1, double d2) {} // CraftBukkit - change signature - protected void setType(BlockChangeDelegate world, int i, int j, int k, int l) { - this.setTypeAndData(world, i, j, k, l, 0); + protected void setType(CraftBlockChangeDelegate world, int i, int j, int k, Block block) { + this.setTypeAndData(world, i, j, k, block, 0); } // CraftBukkit - change signature - protected void setTypeAndData(BlockChangeDelegate world, int i, int j, int k, int l, int i1) { + protected void setTypeAndData(CraftBlockChangeDelegate world, int i, int j, int k, Block block, int l) { if (this.a) { - // CraftBukkit - BlockChangeDelegate doesn't have the 6th parameter - world.setTypeIdAndData(i, j, k, l, i1); + world.setTypeAndData(i, j, k, block, l, 3); } else { // CraftBukkit start - Layering violation :( - if (world instanceof World) { - ((World) world).setTypeIdAndData(i, j, k, l, i1, 2); + if (world.getDelegate() instanceof World) { + ((World) world.getDelegate()).setTypeAndData(i, j, k, block, l, 2); } else { - world.setRawTypeIdAndData(i, j, k, l, i1); + world.setTypeAndData(i, j, k, block, l, 2); } // CraftBukkit end } |