Fixed compilation issues (+small import cleanup in CraftWorld)

By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
CraftBukkit/Spigot
2011-01-15 21:52:43 +00:00
parent f4f967ec4d
commit 6ebeca35fe
2 changed files with 10 additions and 33 deletions

View File

@@ -22,7 +22,7 @@ public class CraftBlock implements Block {
protected byte data;
protected byte light;
protected CraftBlock(final CraftWorld world, final int x, final int y, final int z, final int type, final byte data) {
public CraftBlock(final CraftWorld world, final int x, final int y, final int z, final int type, final byte data) {
this.world = world;
this.x = x;
this.y = y;
@@ -305,4 +305,9 @@ public class CraftBlock implements Block {
return null;
}
public void update() {
type = world.getHandle().a(x, y, z);
data = (byte)world.getHandle().b(x, y, z);
}
}