Fix for MCP name changes in 1.4.5.
This commit is contained in:
parent
241d5a4264
commit
fe8c306907
|
@ -131,7 +131,7 @@ public class BlockIronChest extends BlockContainer {
|
||||||
@Override
|
@Override
|
||||||
public void onBlockAdded(World world, int i, int j, int k) {
|
public void onBlockAdded(World world, int i, int j, int k) {
|
||||||
super.onBlockAdded(world, i, j, k);
|
super.onBlockAdded(world, i, j, k);
|
||||||
world.markBlockNeedsUpdate(i, j, k);
|
world.markBlockForUpdate(i, j, k);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -153,7 +153,7 @@ public class BlockIronChest extends BlockContainer {
|
||||||
TileEntity te = world.getBlockTileEntity(i, j, k);
|
TileEntity te = world.getBlockTileEntity(i, j, k);
|
||||||
if (te != null && te instanceof TileEntityIronChest) {
|
if (te != null && te instanceof TileEntityIronChest) {
|
||||||
((TileEntityIronChest) te).setFacing(chestFacing);
|
((TileEntityIronChest) te).setFacing(chestFacing);
|
||||||
world.markBlockNeedsUpdate(i, j, k);
|
world.markBlockForUpdate(i, j, k);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -79,8 +79,7 @@ public class ItemChestChanger extends Item {
|
||||||
world.setBlockTileEntity(X, Y, Z, newchest);
|
world.setBlockTileEntity(X, Y, Z, newchest);
|
||||||
world.setBlockMetadataWithNotify(X, Y, Z, newchest.getType().ordinal());
|
world.setBlockMetadataWithNotify(X, Y, Z, newchest.getType().ordinal());
|
||||||
world.notifyBlocksOfNeighborChange(X, Y, Z, world.getBlockId(X, Y, Z));
|
world.notifyBlocksOfNeighborChange(X, Y, Z, world.getBlockId(X, Y, Z));
|
||||||
world.markBlockNeedsUpdate(X, Y, Z);
|
world.markBlockForUpdate(X, Y, Z);
|
||||||
world.markBlocksDirty(X, Y, Z, X, Y, Z);
|
|
||||||
stack.stackSize=0;
|
stack.stackSize=0;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -103,7 +103,7 @@ public class TileEntityIronChest extends TileEntity implements IInventory {
|
||||||
topStacks[i] = null;
|
topStacks[i] = null;
|
||||||
}
|
}
|
||||||
if (worldObj!=null) {
|
if (worldObj!=null) {
|
||||||
worldObj.markBlockNeedsUpdate(xCoord, yCoord, zCoord);
|
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -133,7 +133,7 @@ public class TileEntityIronChest extends TileEntity implements IInventory {
|
||||||
topStacks[i] = null;
|
topStacks[i] = null;
|
||||||
}
|
}
|
||||||
if (worldObj!=null) {
|
if (worldObj!=null) {
|
||||||
worldObj.markBlockNeedsUpdate(xCoord, yCoord, zCoord);
|
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue