fix fluid storagebus NPE crash
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@ aechannel=stable
|
||||
aebuild=7
|
||||
aegroup=appeng
|
||||
aebasename=appliedenergistics2
|
||||
trousers=omni-fixes-v46
|
||||
trousers=omni-fixes-v46b
|
||||
|
||||
#########################################################
|
||||
# Versions #
|
||||
|
||||
@@ -172,6 +172,8 @@ public class PartFluidStorageBus extends PartSharedStorageBus implements IMEMoni
|
||||
IItemList<IAEFluidStack> before = AEApi.instance().storage().getStorageChannel( IFluidStorageChannel.class ).createList();
|
||||
boolean denyRead = false;
|
||||
if( in != null )
|
||||
{
|
||||
if( accessChanged )
|
||||
{
|
||||
AccessRestriction currentAccess = (AccessRestriction) ( (ConfigManager) this.getConfigManager() ).getSetting( Settings.ACCESS );
|
||||
AccessRestriction oldAccess = (AccessRestriction) ( (ConfigManager) this.getConfigManager() ).getOldSetting( Settings.ACCESS );
|
||||
@@ -179,12 +181,15 @@ public class PartFluidStorageBus extends PartSharedStorageBus implements IMEMoni
|
||||
{
|
||||
denyRead = true;
|
||||
}
|
||||
if( accessChanged )
|
||||
{
|
||||
in.setBaseAccess( oldAccess );
|
||||
}
|
||||
before = in.getAvailableItems( before );
|
||||
in.setBaseAccess( currentAccess );
|
||||
accessChanged = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
before = in.getAvailableItems( before );
|
||||
}
|
||||
}
|
||||
|
||||
this.cached = false;
|
||||
|
||||
Reference in New Issue
Block a user