static void init(TechType techType) { currentCraftAmount = 0; TechInfo techInfo = TechInfoUtils.getTechInfo(techType); currentCraftAmountMax = getMaxAmount(techInfo); if (currentCraftAmountMax == 0) { return; } currentCraftAmount = 1; currentTechType = techType; originalTechInfo = techInfo; currentTechInfo = new TechInfo(techInfo); }