mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 04:52:25 +00:00
More work. I'm gonna let the configuration component determine send/receive instead of cluttering the GUI more
This commit is contained in:
1 parent
8bd6b6e367
commit
c03b712ed2
6 files changed
+347
-26
No files matched your search
@@ -64,6 +64,11 @@ public class SideData
|
||||
Object[] tanks = manager.getTanks();
|
||||
List<FluidTankInfo> infos = new ArrayList<FluidTankInfo>();
|
||||
|
||||
if(tanks == null)
|
||||
{
|
||||
return infos.toArray(new FluidTankInfo[] {});
|
||||
}
|
||||
|
||||
for(int slot : availableSlots)
|
||||
{
|
||||
if(slot <= tanks.length-1 && tanks[slot] instanceof IFluidTank)
|
||||
@@ -79,7 +84,7 @@ public class SideData
|
||||
{
|
||||
Object[] tanks = manager.getTanks();
|
||||
|
||||
if(tanks.length < 1 || !(tanks[0] instanceof GasTank))
|
||||
if(tanks == null || tanks.length < 1 || !(tanks[0] instanceof GasTank))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user