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:
commit
2b28cc3558
@ -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:
|
||||
|
@ -422,6 +422,7 @@ public class TileDiskDrive extends TilePeripheralBase
|
||||
return new DiskDrivePeripheral( this );
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
public ItemStack getDiskStack()
|
||||
{
|
||||
synchronized( this )
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user