Fix crash with casing loading. Closes #2410
This commit is contained in:
parent
8ab3b3a7be
commit
fa2469b034
3 changed files with 3 additions and 8 deletions
|
@ -496,7 +496,9 @@ public class TRContent {
|
|||
}
|
||||
|
||||
public static ItemConvertible[] getCasings() {
|
||||
return Arrays.stream(MachineBlocks.values()).map((Function<MachineBlocks, ItemConvertible>) machineBlocks -> () -> Item.fromBlock(machineBlocks.casing)).toArray(ItemConvertible[]::new);
|
||||
return Arrays.stream(MachineBlocks.values())
|
||||
.map((Function<MachineBlocks, ItemConvertible>) machineBlocks -> () -> machineBlocks.casing.asItem())
|
||||
.toArray(ItemConvertible[]::new);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue