v1.4.0: added a safety check to earthroot armor
This commit is contained in:
@@ -112,10 +112,12 @@ public class Earthroot extends Plant {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void level( int value ) {
|
public void level( int value ) {
|
||||||
if (level < value) {
|
if (target != null) {
|
||||||
level = value;
|
if (level < value) {
|
||||||
|
level = value;
|
||||||
|
}
|
||||||
|
pos = target.pos;
|
||||||
}
|
}
|
||||||
pos = target.pos;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user