Fixed automatic rotation

This commit is contained in:
Aidan Brady 2013-08-03 14:28:39 -04:00
parent ec9835aa53
commit 4f74f65907
3 changed files with 3 additions and 2 deletions

View file

@ -63,7 +63,7 @@ public class PacketHandler implements IPacketHandler
if (tileEntity instanceof IPacketReceiver)
{
sendTileEntityPacketToClients(tileEntity, ((IPacketReceiver) tileEntity).getNetworkedData(new ArrayList()));
sendTileEntityPacketToClients(tileEntity, ((IPacketReceiver) tileEntity).getNetworkedData(new ArrayList()).toArray());
}
}
}

View file

@ -72,7 +72,7 @@ public class BlockEMContractor extends BlockBase implements ITileEntityProvider
{
TileEntityEMContractor tileContractor = (TileEntityEMContractor)world.getBlockTileEntity(x, y, z);
if(!tileContractor.isLatched())
if(!world.isRemote && !tileContractor.isLatched())
{
for(ForgeDirection side : ForgeDirection.VALID_DIRECTIONS)
{

View file

@ -271,6 +271,7 @@ public class TileEntityEMContractor extends TileEntity implements IPacketReceive
{
try {
facing = ForgeDirection.getOrientation(input.readInt());
worldObj.markBlockForRenderUpdate(xCoord, yCoord, zCoord);
} catch(Exception e) {}
}