Convert on Chest Open, delete lost legacy brews

This commit is contained in:
Sn0wStorm
2019-11-12 17:02:01 +01:00
parent 318963b379
commit 48a15a0e82
4 changed files with 46 additions and 45 deletions
+4
View File
@@ -903,6 +903,10 @@ public class Brew {
public static void loadLegacy(BIngredients ingredients, int uid, int quality, int alc, byte distillRuns, float ageTime, float wood, String recipe, boolean unlabeled, boolean persistent, boolean stat, int lastUpdate) {
Brew brew = new Brew(ingredients, quality, alc, distillRuns, ageTime, wood, recipe, unlabeled, stat, lastUpdate);
brew.persistent = persistent;
if (brew.lastUpdate <= 0) {
// We failed to save the lastUpdate, restart the countdown
brew.touch();
}
legacyPotions.put(uid, brew);
}