Added option for "Max Entities" for formation plane.

Increased default formation plane "Max Entities" to 128 from 32
Formation plane now updates properly to reflect power state.
This commit is contained in:
AlgorithmX2 2014-09-07 12:01:09 -05:00
parent 5ef5c00df4
commit 4a77b401d9
2 changed files with 9 additions and 1 deletions

View file

@ -24,6 +24,7 @@ import appeng.util.IConfigManagerHost;
import appeng.util.Platform; import appeng.util.Platform;
import cpw.mods.fml.client.event.ConfigChangedEvent; import cpw.mods.fml.client.event.ConfigChangedEvent;
import cpw.mods.fml.common.FMLCommonHandler; import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.ModContainer; import cpw.mods.fml.common.ModContainer;
import cpw.mods.fml.common.eventhandler.SubscribeEvent; import cpw.mods.fml.common.eventhandler.SubscribeEvent;
@ -49,6 +50,8 @@ public class AEConfig extends Configuration implements IConfigureableObject, ICo
public int storageBiomeID = -1; public int storageBiomeID = -1;
public int storageProviderID = -1; public int storageProviderID = -1;
public int formationPlaneEntityLimit = 128;
public float spawnChargedChance = 0.92f; public float spawnChargedChance = 0.92f;
public int quartzOresPerCluster = 4; public int quartzOresPerCluster = 4;
public int quartzOresClusterAmount = 15; public int quartzOresClusterAmount = 15;
@ -253,6 +256,8 @@ public class AEConfig extends Configuration implements IConfigureableObject, ICo
WirelessTerminalDrainMultiplier = get( "wireless", "WirelessTerminalDrainMultiplier", WirelessTerminalDrainMultiplier ).getDouble( WirelessTerminalDrainMultiplier = get( "wireless", "WirelessTerminalDrainMultiplier", WirelessTerminalDrainMultiplier ).getDouble(
WirelessTerminalDrainMultiplier ); WirelessTerminalDrainMultiplier );
formationPlaneEntityLimit = get( "automation", "formationPlaneEntityLimit", formationPlaneEntityLimit ).getInt( formationPlaneEntityLimit );
wireless_battery = get( "battery", "wireless", wireless_battery ).getInt( wireless_battery ); wireless_battery = get( "battery", "wireless", wireless_battery ).getInt( wireless_battery );
staff_battery = get( "battery", "staff", staff_battery ).getInt( staff_battery ); staff_battery = get( "battery", "staff", staff_battery ).getInt( staff_battery );
manipulator_battery = get( "battery", "manipulator", manipulator_battery ).getInt( manipulator_battery ); manipulator_battery = get( "battery", "manipulator", manipulator_battery ).getInt( manipulator_battery );

View file

@ -47,6 +47,7 @@ import appeng.api.storage.data.IAEItemStack;
import appeng.api.storage.data.IItemList; import appeng.api.storage.data.IItemList;
import appeng.api.util.IConfigManager; import appeng.api.util.IConfigManager;
import appeng.client.texture.CableBusTextures; import appeng.client.texture.CableBusTextures;
import appeng.core.AEConfig;
import appeng.core.sync.GuiBridge; import appeng.core.sync.GuiBridge;
import appeng.helpers.IPriorityHost; import appeng.helpers.IPriorityHost;
import appeng.me.GridAccessException; import appeng.me.GridAccessException;
@ -111,6 +112,7 @@ public class PartFormationPlane extends PartUpgradeable implements ICellContaine
{ {
wasActive = currentActive; wasActive = currentActive;
updateHandler();// proxy.getGrid().postEvent( new MENetworkCellArrayUpdate() ); updateHandler();// proxy.getGrid().postEvent( new MENetworkCellArrayUpdate() );
getHost().markForUpdate();
} }
} }
@ -122,6 +124,7 @@ public class PartFormationPlane extends PartUpgradeable implements ICellContaine
{ {
wasActive = currentActive; wasActive = currentActive;
updateHandler();// proxy.getGrid().postEvent( new MENetworkCellArrayUpdate() ); updateHandler();// proxy.getGrid().postEvent( new MENetworkCellArrayUpdate() );
getHost().markForUpdate();
} }
} }
@ -449,7 +452,7 @@ public class PartFormationPlane extends PartUpgradeable implements ICellContaine
for (List Z : c.entityLists) for (List Z : c.entityLists)
sum += Z.size(); sum += Z.size();
if ( sum < 32 ) if ( sum < AEConfig.instance.formationPlaneEntityLimit )
{ {
if ( type == Actionable.MODULATE ) if ( type == Actionable.MODULATE )
{ {