mirror of
https://github.com/Ellpeck/PrettyPipes.git
synced 2024-12-27 00:59:23 +01:00
use linked lists in favor of ArrayDeques as they use far less memory when empty
This commit is contained in:
parent
4f78e7ecc8
commit
585e003327
2 changed files with 2 additions and 2 deletions
|
@ -63,7 +63,7 @@ public class PipeTileEntity extends TileEntity implements INamedContainerProvide
|
|||
return 1;
|
||||
}
|
||||
};
|
||||
public final Queue<NetworkLock> craftIngredientRequests = new ArrayDeque<>();
|
||||
public final Queue<NetworkLock> craftIngredientRequests = new LinkedList<>();
|
||||
public final List<Pair<BlockPos, ItemStack>> craftResultRequests = new ArrayList<>();
|
||||
public PressurizerTileEntity pressurizer;
|
||||
public int moduleDropCheck;
|
||||
|
|
|
@ -54,7 +54,7 @@ public class ItemTerminalTileEntity extends TileEntity implements INamedContaine
|
|||
}
|
||||
};
|
||||
protected Map<EquatableItemStack, NetworkItem> networkItems;
|
||||
private final Queue<NetworkLock> existingRequests = new ArrayDeque<>();
|
||||
private final Queue<NetworkLock> existingRequests = new LinkedList<>();
|
||||
|
||||
protected ItemTerminalTileEntity(TileEntityType<?> tileEntityTypeIn) {
|
||||
super(tileEntityTypeIn);
|
||||
|
|
Loading…
Reference in a new issue