1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-10-31 13:42: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
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 )