mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 14:52:58 +00:00
Update to 1.11.2. Untested, still using outdated MCMP
This commit is contained in:
1 parent
2b02042f4c
commit
6a42eb64e3
666 files changed
+11360
-3713
No files matched your search
@@ -30,7 +30,7 @@ public class TileEntityBoundingBlock extends TileEntity implements ITileNetwork
|
||||
{
|
||||
receivedCoords = true;
|
||||
|
||||
if(!worldObj.isRemote)
|
||||
if(!world.isRemote)
|
||||
{
|
||||
mainPos = pos;
|
||||
|
||||
@@ -43,7 +43,7 @@ public class TileEntityBoundingBlock extends TileEntity implements ITileNetwork
|
||||
{
|
||||
super.validate();
|
||||
|
||||
if(worldObj.isRemote)
|
||||
if(world.isRemote)
|
||||
{
|
||||
Mekanism.packetHandler.sendToServer(new DataRequestMessage(Coord4D.get(this)));
|
||||
}
|
||||
@@ -51,13 +51,13 @@ public class TileEntityBoundingBlock extends TileEntity implements ITileNetwork
|
||||
|
||||
public void onNeighborChange(Block block)
|
||||
{
|
||||
TileEntity tile = worldObj.getTileEntity(mainPos);
|
||||
TileEntity tile = world.getTileEntity(mainPos);
|
||||
|
||||
if(tile instanceof TileEntityBasicBlock)
|
||||
{
|
||||
TileEntityBasicBlock tileEntity = (TileEntityBasicBlock)tile;
|
||||
|
||||
int power = worldObj.isBlockIndirectlyGettingPowered(getPos());
|
||||
int power = world.isBlockIndirectlyGettingPowered(getPos());
|
||||
|
||||
if(prevPower != power)
|
||||
{
|
||||
@@ -82,7 +82,7 @@ public class TileEntityBoundingBlock extends TileEntity implements ITileNetwork
|
||||
@Override
|
||||
public void handlePacketData(ByteBuf dataStream)
|
||||
{
|
||||
if(worldObj.isRemote)
|
||||
if(world.isRemote)
|
||||
{
|
||||
mainPos = new BlockPos(dataStream.readInt(), dataStream.readInt(), dataStream.readInt());
|
||||
prevPower = dataStream.readInt();
|
||||
|
||||
Reference in new issue
Block a user