Start of update() + added sign

This commit is contained in:
Dinnerbone
2011-01-07 16:53:16 +00:00
parent 08a62e37ac
commit 55e9522955
2 changed files with 43 additions and 0 deletions

View File

@@ -143,4 +143,20 @@ public class CraftBlockState implements BlockState {
public Block getBlock() {
return world.getBlockAt(x, y, z);
}
public boolean update() {
return update(false);
}
public boolean update(boolean force) { // TODO
Block block = getBlock();
synchronized (block) {
if (block.getType() != this.getType()) {
return false;
}
}
return true;
}
}