Reminder to myself in the morning
This commit is contained in:
parent
a2b134b23f
commit
b36ea50c70
1 changed files with 1 additions and 3 deletions
|
@ -88,12 +88,10 @@ public class CommandSetValue extends CommandBase
|
||||||
{
|
{
|
||||||
if (args[0].equalsIgnoreCase("pre"))
|
if (args[0].equalsIgnoreCase("pre"))
|
||||||
{
|
{
|
||||||
// TODO When this is done, should we regen values immediately and sync all the values to everyone?
|
// TODO Mark that the server needs to regen values on next startup
|
||||||
EnergyValueRegistry.getInstance().setEnergyValue(wrappedStack, newEnergyValue);
|
|
||||||
Map<WrappedStack, EnergyValue> preAssignedValues = SerializationHelper.readEnergyValueStackMapFromJsonFile(Files.PRE_ASSIGNED_ENERGY_VALUES);
|
Map<WrappedStack, EnergyValue> preAssignedValues = SerializationHelper.readEnergyValueStackMapFromJsonFile(Files.PRE_ASSIGNED_ENERGY_VALUES);
|
||||||
preAssignedValues.put(wrappedStack, newEnergyValue);
|
preAssignedValues.put(wrappedStack, newEnergyValue);
|
||||||
SerializationHelper.writeEnergyValueStackMapToJsonFile(Files.PRE_ASSIGNED_ENERGY_VALUES, preAssignedValues);
|
SerializationHelper.writeEnergyValueStackMapToJsonFile(Files.PRE_ASSIGNED_ENERGY_VALUES, preAssignedValues);
|
||||||
PacketHandler.INSTANCE.sendToAll(new MessageSetEnergyValue(wrappedStack, newEnergyValue));
|
|
||||||
}
|
}
|
||||||
else if (args[0].equalsIgnoreCase("post"))
|
else if (args[0].equalsIgnoreCase("post"))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue