Fixed some warnings
This commit is contained in:
parent
a0d827fa3b
commit
774d42d944
6 changed files with 6 additions and 18 deletions
|
@ -478,9 +478,7 @@ public class TRContent {
|
|||
}
|
||||
|
||||
private List<Block> allBlocks() {
|
||||
return Collections.unmodifiableList(Arrays.asList(
|
||||
block, stairsBlock, slabBlock, wallBlock
|
||||
));
|
||||
return List.of(block, stairsBlock, slabBlock, wallBlock);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -511,7 +509,7 @@ public class TRContent {
|
|||
|
||||
public static ItemConvertible[] getCasings() {
|
||||
return Arrays.stream(MachineBlocks.values())
|
||||
.map((Function<MachineBlocks, ItemConvertible>) machineBlocks -> machineBlocks.casing::asItem)
|
||||
.map((Function<MachineBlocks, ItemConvertible>) machineBlocks -> machineBlocks.casing)
|
||||
.toArray(ItemConvertible[]::new);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue