Fix time in a bottle in two more locations
This commit is contained in:
parent
ede61453cb
commit
c8a5a0a9aa
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue