Use isEmpty
This commit is contained in:
parent
004017028d
commit
805131ce85
@ -14,7 +14,7 @@ public class VehicleArrow extends CraftArrow implements Vehicle {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void remove() {
|
public void remove() {
|
||||||
if (this.getPassenger() == null) {
|
if (isEmpty()) {
|
||||||
super.remove();
|
super.remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,7 @@ public class VehicleArrow extends CraftArrow implements Vehicle {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void remove() {
|
public void remove() {
|
||||||
if (this.getPassenger() == null) {
|
if (isEmpty()) {
|
||||||
super.remove();
|
super.remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user