More work. I'm gonna let the configuration component determine send/receive instead of cluttering the GUI more

This commit is contained in:
aidancbrady committed 2016-03-04 12:07:34 -05:00
1 parent 8bd6b6e367
commit c03b712ed2
6 files changed
+347 -26

No files matched your search

+6 -1
View File
@@ -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;
}