v1.4.0: added a safety check to earthroot armor

This commit is contained in:
Evan Debenham
2022-09-26 19:49:57 -04:00
parent 4b08ab3398
commit 4baea5ec79

View File

@@ -112,10 +112,12 @@ public class Earthroot extends Plant {
}
public void level( int value ) {
if (level < value) {
level = value;
if (target != null) {
if (level < value) {
level = value;
}
pos = target.pos;
}
pos = target.pos;
}
@Override