Use correct method and mask to set blocks.

Dieser Commit ist enthalten in:
wizjany 2013-03-16 17:15:00 -04:00
Ursprung 0d52d22bd8
Commit 6c35d20306

Datei anzeigen

@ -253,14 +253,12 @@ public class DefaultNmsBlock extends NmsBlock {
// TileEntity te = craftWorld.getHandle().getTileEntity(x, y, z); // TileEntity te = craftWorld.getHandle().getTileEntity(x, y, z);
// craftWorld.getHandle().tileEntityList.remove(te); // craftWorld.getHandle().tileEntityList.remove(te);
boolean changed = craftWorld.getHandle().setRawTypeId(x, y, z, block.getId()); boolean changed = craftWorld.getHandle().setTypeIdAndData(x, y, z, block.getId(), block.getData(), 0);
if (block instanceof BaseBlock) { if (block instanceof BaseBlock) {
world.copyToWorld(position, (BaseBlock) block); world.copyToWorld(position, (BaseBlock) block);
} }
changed = craftWorld.getHandle().setData(x, y, z, block.getData(), 2) || changed;
if (changed) { if (changed) {
if (notifyAdjacent) { if (notifyAdjacent) {
craftWorld.getHandle().update(x, y, z, block.getId()); craftWorld.getHandle().update(x, y, z, block.getId());