Cleanup comments, formatting, etc
This commit is contained in:
@@ -115,19 +115,17 @@ public class CraftBlockState implements BlockState {
|
||||
public boolean update(boolean force) {
|
||||
Block block = getBlock();
|
||||
|
||||
synchronized (block) {
|
||||
if (block.getType() != this.getType()) {
|
||||
if (force) {
|
||||
block.setTypeId(this.getTypeId());
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
if (block.getType() != this.getType()) {
|
||||
if (force) {
|
||||
block.setTypeId(this.getTypeId());
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
||||
block.setData(getRawData());
|
||||
world.getHandle().notify(x, y, z);
|
||||
}
|
||||
|
||||
block.setData(getRawData());
|
||||
world.getHandle().notify(x, y, z);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user