Skip to content

Commit f17df15

Browse files
committed
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.
1 parent bfbb18b commit f17df15

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

src/main/java/dan200/computercraft/shared/media/items/ItemDiskLegacy.java

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,7 @@ public void getSubItems( @Nonnull CreativeTabs tabs, @Nonnull NonNullList<ItemSt
5454
@Nonnull
5555
public static ItemStack createFromIDAndColour( int id, String label, int colour )
5656
{
57-
if( colour != Colour.Blue.getHex() )
58-
{
59-
return ItemDiskExpanded.createFromIDAndColour( id, label, colour );
60-
}
61-
62-
ItemStack stack = new ItemStack( ComputerCraft.Items.disk, 1 );
63-
ComputerCraft.Items.disk.setDiskID( stack, id );
64-
ComputerCraft.Items.disk.setLabel( stack, label );
65-
return stack;
57+
return ItemDiskExpanded.createFromIDAndColour( id, label, colour );
6658
}
6759

6860
public int getDiskID( @Nonnull ItemStack stack )

0 commit comments

Comments
 (0)