mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-28 01:44:48 +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:
|
case 0:
|
||||||
{
|
{
|
||||||
// isPresent
|
// isDiskPresent
|
||||||
return new Object[] {
|
return new Object[] {
|
||||||
m_diskDrive.getDiskStack() != null
|
!m_diskDrive.getDiskStack().isEmpty()
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
case 1:
|
case 1:
|
||||||
|
@ -422,6 +422,7 @@ public class TileDiskDrive extends TilePeripheralBase
|
|||||||
return new DiskDrivePeripheral( this );
|
return new DiskDrivePeripheral( this );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nonnull
|
||||||
public ItemStack getDiskStack()
|
public ItemStack getDiskStack()
|
||||||
{
|
{
|
||||||
synchronized( this )
|
synchronized( this )
|
||||||
|
@ -154,7 +154,8 @@ public abstract class ComputerCraftProxyCommon implements IComputerCraftProxy
|
|||||||
packet.m_dataInt = new int[] { pos.getX(), pos.getY(), pos.getZ() };
|
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
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user