From 805131ce85c98bc62d12ec36037201a9958855a2 Mon Sep 17 00:00:00 2001 From: Shevchik Date: Thu, 6 Mar 2014 17:42:26 +0400 Subject: [PATCH] Use isEmpty --- src/com/cnaude/chairs/vehiclearrow/nms164/VehicleArrow.java | 2 +- src/com/cnaude/chairs/vehiclearrow/nms172/VehicleArrow.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/cnaude/chairs/vehiclearrow/nms164/VehicleArrow.java b/src/com/cnaude/chairs/vehiclearrow/nms164/VehicleArrow.java index 472859e..9bde3c1 100644 --- a/src/com/cnaude/chairs/vehiclearrow/nms164/VehicleArrow.java +++ b/src/com/cnaude/chairs/vehiclearrow/nms164/VehicleArrow.java @@ -14,7 +14,7 @@ public class VehicleArrow extends CraftArrow implements Vehicle { @Override public void remove() { - if (this.getPassenger() == null) { + if (isEmpty()) { super.remove(); } } diff --git a/src/com/cnaude/chairs/vehiclearrow/nms172/VehicleArrow.java b/src/com/cnaude/chairs/vehiclearrow/nms172/VehicleArrow.java index a37a3f4..13d1a60 100644 --- a/src/com/cnaude/chairs/vehiclearrow/nms172/VehicleArrow.java +++ b/src/com/cnaude/chairs/vehiclearrow/nms172/VehicleArrow.java @@ -14,7 +14,7 @@ public class VehicleArrow extends CraftArrow implements Vehicle { @Override public void remove() { - if (this.getPassenger() == null) { + if (isEmpty()) { super.remove(); } }