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