mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 15:17:59 +01:00
Fixed gems inexplicably gaining one level when saving and reloading the world
This commit is contained in:
parent
898e93d8b1
commit
a0fa404767
1 changed files with 1 additions and 3 deletions
|
@ -331,9 +331,7 @@ public class EntitySpell extends EntityCreature implements IMagicals, ICaster<En
|
|||
|
||||
@Override
|
||||
public void setCurrentLevel(int level) {
|
||||
level = Math.max(level, 1);
|
||||
|
||||
dataManager.set(LEVEL, level);
|
||||
dataManager.set(LEVEL, Math.max(level, 0));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue