quick fix : Collections.sort() can be replaced with List.sort()

This commit is contained in:
Alexdoru authored and Jason Mitchell committed 2023-01-28 18:02:41 -08:00
1 parent bbaba41d83
commit 3d1489401c
2 files changed
+7 -13

No files matched your search

@@ -130,8 +130,8 @@ public class TankLayerScan extends LogicComponent {
// @SuppressWarnings({ "unchecked" })
protected void finalizeStructure() {
Collections.sort(blockCoords, new CoordTupleSort());
Collections.sort(airCoords, new CoordTupleSort());
blockCoords.sort(new CoordTupleSort());
airCoords.sort(new CoordTupleSort());
for (CoordTuple coord : blockCoords) {
TileEntity servant = world.getTileEntity(coord.x, coord.y, coord.z);