Reminder to myself in the morning

This commit is contained in:
Pahimar 2014-09-15 23:01:37 -04:00
parent a2b134b23f
commit b36ea50c70

View file

@ -88,12 +88,10 @@ public class CommandSetValue extends CommandBase
{
if (args[0].equalsIgnoreCase("pre"))
{
// TODO When this is done, should we regen values immediately and sync all the values to everyone?
EnergyValueRegistry.getInstance().setEnergyValue(wrappedStack, newEnergyValue);
// TODO Mark that the server needs to regen values on next startup
Map<WrappedStack, EnergyValue> preAssignedValues = SerializationHelper.readEnergyValueStackMapFromJsonFile(Files.PRE_ASSIGNED_ENERGY_VALUES);
preAssignedValues.put(wrappedStack, newEnergyValue);
SerializationHelper.writeEnergyValueStackMapToJsonFile(Files.PRE_ASSIGNED_ENERGY_VALUES, preAssignedValues);
PacketHandler.INSTANCE.sendToAll(new MessageSetEnergyValue(wrappedStack, newEnergyValue));
}
else if (args[0].equalsIgnoreCase("post"))
{