Fix for MCP name changes in 1.4.5.

This commit is contained in:
Christian 2012-11-16 19:29:36 -05:00
parent 241d5a4264
commit fe8c306907
3 changed files with 5 additions and 6 deletions

View File

@ -131,7 +131,7 @@ public class BlockIronChest extends BlockContainer {
@Override
public void onBlockAdded(World world, int i, int j, int k) {
super.onBlockAdded(world, i, j, k);
world.markBlockNeedsUpdate(i, j, k);
world.markBlockForUpdate(i, j, k);
}
@Override
@ -153,7 +153,7 @@ public class BlockIronChest extends BlockContainer {
TileEntity te = world.getBlockTileEntity(i, j, k);
if (te != null && te instanceof TileEntityIronChest) {
((TileEntityIronChest) te).setFacing(chestFacing);
world.markBlockNeedsUpdate(i, j, k);
world.markBlockForUpdate(i, j, k);
}
}

View File

@ -79,8 +79,7 @@ public class ItemChestChanger extends Item {
world.setBlockTileEntity(X, Y, Z, newchest);
world.setBlockMetadataWithNotify(X, Y, Z, newchest.getType().ordinal());
world.notifyBlocksOfNeighborChange(X, Y, Z, world.getBlockId(X, Y, Z));
world.markBlockNeedsUpdate(X, Y, Z);
world.markBlocksDirty(X, Y, Z, X, Y, Z);
world.markBlockForUpdate(X, Y, Z);
stack.stackSize=0;
return true;
}

View File

@ -103,7 +103,7 @@ public class TileEntityIronChest extends TileEntity implements IInventory {
topStacks[i] = null;
}
if (worldObj!=null) {
worldObj.markBlockNeedsUpdate(xCoord, yCoord, zCoord);
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
}
return;
}
@ -133,7 +133,7 @@ public class TileEntityIronChest extends TileEntity implements IInventory {
topStacks[i] = null;
}
if (worldObj!=null) {
worldObj.markBlockNeedsUpdate(xCoord, yCoord, zCoord);
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
}
}