Fixed automatic rotation
This commit is contained in:
parent
ec9835aa53
commit
4f74f65907
3 changed files with 3 additions and 2 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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) {}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue