Use isEmpty

This commit is contained in:
Shevchik 2014-03-06 17:42:26 +04:00
parent 004017028d
commit 805131ce85
2 changed files with 2 additions and 2 deletions

View File

@ -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();
} }
} }

View File

@ -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();
} }
} }