mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-26 08:56:54 +00:00
Always create extended disks
Whilst the legacy ones are important for backwards compatibility, they cannot have an ID of 0, which introduces issues when they are the first disk created in the world.
This commit is contained in:
parent
bfbb18bdfc
commit
f17df15117
@ -54,15 +54,7 @@ public class ItemDiskLegacy extends Item
|
||||
@Nonnull
|
||||
public static ItemStack createFromIDAndColour( int id, String label, int colour )
|
||||
{
|
||||
if( colour != Colour.Blue.getHex() )
|
||||
{
|
||||
return ItemDiskExpanded.createFromIDAndColour( id, label, colour );
|
||||
}
|
||||
|
||||
ItemStack stack = new ItemStack( ComputerCraft.Items.disk, 1 );
|
||||
ComputerCraft.Items.disk.setDiskID( stack, id );
|
||||
ComputerCraft.Items.disk.setLabel( stack, label );
|
||||
return stack;
|
||||
return ItemDiskExpanded.createFromIDAndColour( id, label, colour );
|
||||
}
|
||||
|
||||
public int getDiskID( @Nonnull ItemStack stack )
|
||||
|
Loading…
Reference in New Issue
Block a user