Fixed gems inexplicably gaining one level when saving and reloading the world

This commit is contained in:
Sollace 2019-02-21 19:18:38 +02:00
parent 898e93d8b1
commit a0fa404767

View file

@ -331,9 +331,7 @@ public class EntitySpell extends EntityCreature implements IMagicals, ICaster<En
@Override @Override
public void setCurrentLevel(int level) { public void setCurrentLevel(int level) {
level = Math.max(level, 1); dataManager.set(LEVEL, Math.max(level, 0));
dataManager.set(LEVEL, level);
} }
@Override @Override