Fix time in a bottle in two more locations

This commit is contained in:
zontreck 2024-04-30 16:17:56 -07:00
parent ede61453cb
commit c8a5a0a9aa

View file

@ -60,7 +60,7 @@ public class TimeBottle extends AbstractBottle
@Override
public void setStoredEnergy(ItemStack stack, int energy) {
int newStoredTime = Math.min(energy, AEServerConfig.getInstance().bottles.maxTime);
int newStoredTime = Math.min(energy, AEServerConfig.getInstance().bottles.maxTime * 20);
stack.getOrCreateTag().putInt(NBTKeys.STORED_TIME, newStoredTime);
}
@ -74,7 +74,7 @@ public class TimeBottle extends AbstractBottle
}
public void setTotalAccumulatedTime(ItemStack stack, int value) {
int newValue = Math.min(value, AEServerConfig.getInstance().bottles.maxTime);
int newValue = Math.min(value, AEServerConfig.getInstance().bottles.maxTime * 20);
stack.getOrCreateTag().putInt(NBTKeys.TOTAL_ACCUMULATED_TIME, newValue);
}