Update to MC 1.18.2.

This commit is contained in:
Florian Nücke
2022-04-07 19:19:24 +02:00
parent 53cd30f50f
commit 78ae75a557
34 changed files with 119 additions and 101 deletions

View File

@@ -55,11 +55,11 @@ public final class DiskDriveBlockEntity extends ModBlockEntity implements DiskDr
///////////////////////////////////////////////////////////////////
public boolean canInsert(final ItemStack stack) {
return !stack.isEmpty() && ItemTags.DEVICES_FLOPPY.contains(stack.getItem());
return !stack.isEmpty() && stack.is(ItemTags.DEVICES_FLOPPY);
}
public ItemStack insert(final ItemStack stack, @Nullable final Player player) {
if (stack.isEmpty() || !ItemTags.DEVICES_FLOPPY.contains(stack.getItem())) {
if (!canInsert(stack)) {
return stack;
}