mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-12-12 19:20:29 +00:00
Fix .isDiskPresent() always reporting true
We were still determining if the stack was null, but post-1.11 this will never be the case.
This commit is contained in:
parent
1ef7c8e8db
commit
f9761388b1
@ -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:
|
||||
|
@ -423,6 +423,7 @@ public class TileDiskDrive extends TilePeripheralBase
|
||||
return new DiskDrivePeripheral( this );
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
public ItemStack getDiskStack()
|
||||
{
|
||||
synchronized( this )
|
||||
|
Loading…
Reference in New Issue
Block a user