1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-11-10 11:59:59 +00:00

Merge remote-tracking branch 'SquidDev-CC-ComputerCraft/hotfix/disk-drive-stop'

This commit is contained in:
SquidDev 2018-03-29 11:41:00 +01:00
commit 2b28cc3558
3 changed files with 5 additions and 3 deletions

View File

@ -62,9 +62,9 @@ public class DiskDrivePeripheral implements IPeripheral
{
case 0:
{
// isPresent
// isDiskPresent
return new Object[] {
m_diskDrive.getDiskStack() != null
!m_diskDrive.getDiskStack().isEmpty()
};
}
case 1:

View File

@ -422,6 +422,7 @@ public class TileDiskDrive extends TilePeripheralBase
return new DiskDrivePeripheral( this );
}
@Nonnull
public ItemStack getDiskStack()
{
synchronized( this )

View File

@ -154,7 +154,8 @@ public abstract class ComputerCraftProxyCommon implements IComputerCraftProxy
packet.m_dataInt = new int[] { pos.getX(), pos.getY(), pos.getZ() };
}
ComputerCraft.sendToAllPlayers( packet );
NetworkRegistry.TargetPoint point = new NetworkRegistry.TargetPoint( world.provider.getDimension(), pos.getX(), pos.getY(), pos.getZ(), 64 );
ComputerCraft.sendToAllAround( packet, point );
}
@Override