Tie up lose ends with NmsBlock class loading.

This commit is contained in:
Wizjany
2013-01-19 18:33:23 -05:00
parent d64a16da48
commit 89bdd8d9ba
10 changed files with 59 additions and 459 deletions

View File

@@ -250,14 +250,17 @@ public class DefaultNmsBlock extends NmsBlock {
int z = position.getBlockZ();
CraftWorld craftWorld = ((CraftWorld) world.getWorld());
// TileEntity te = craftWorld.getHandle().getTileEntity(x, y, z);
// craftWorld.getHandle().tileEntityList.remove(te);
boolean changed = craftWorld.getHandle().setRawTypeIdAndData(
x, y, z, block.getId(), block.getData());
boolean changed = craftWorld.getHandle().setRawTypeId(x, y, z, block.getId());
if (block instanceof BaseBlock) {
world.copyToWorld(position, (BaseBlock) block);
}
changed = craftWorld.getHandle().setRawData(x, y, z, block.getData()) || changed;
if (changed) {
if (notifyAdjacent) {
craftWorld.getHandle().update(x, y, z, block.getId());