mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 14:52:58 +00:00
Add support for configuring machine energy storage. (#5418)
* Add support for configurable machines storage. * Make factories and tooltips use machine storage from config. Renaming. - Renamed config instance members, to reduce redundancy - Made machines get Storage and Usage from MachineType - Other miscellaneous cosmetic changes on the matter * Update ItemBlockMachine.java * Tweak factories to always have storage needed to run all processes. * Add storage config to PacketConfigSync.
This commit is contained in:
1 parent
14d60702b6
commit
36aa81dcf4
47 files changed
+305
-169
No files matched your search
@@ -161,6 +161,7 @@ public class CommonProxy implements IGuiProvider {
|
||||
public void loadConfiguration() {
|
||||
MekanismConfig.local().general.load(Mekanism.configuration);
|
||||
MekanismConfig.local().usage.load(Mekanism.configuration);
|
||||
MekanismConfig.local().storage.load(Mekanism.configuration);
|
||||
|
||||
if (Mekanism.configuration.hasChanged()) {
|
||||
Mekanism.configuration.save();
|
||||
@@ -399,8 +400,6 @@ public class CommonProxy implements IGuiProvider {
|
||||
MekanismAPI.addBoxBlacklist(Blocks.MOB_SPAWNER, OreDictionary.WILDCARD_VALUE);
|
||||
}
|
||||
|
||||
BlockStateMachine.MachineType.updateAllUsages();
|
||||
|
||||
if (MekanismConfig.current().general.voiceServerEnabled.val() && Mekanism.voiceManager == null) {
|
||||
Mekanism.voiceManager = new VoiceServerManager();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user