From e5ce4c0f8c5910f71263757b0cf99d30b9032813 Mon Sep 17 00:00:00 2001 From: Shevchik Date: Tue, 3 Sep 2013 01:28:12 +0400 Subject: [PATCH] Small code cleaning --- src/com/cnaude/chairs/EventListener.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/com/cnaude/chairs/EventListener.java b/src/com/cnaude/chairs/EventListener.java index de44395..3115905 100644 --- a/src/com/cnaude/chairs/EventListener.java +++ b/src/com/cnaude/chairs/EventListener.java @@ -44,12 +44,12 @@ public class EventListener implements Listener { private boolean isSitting(Player player) { - if (player.isInsideVehicle()) { - if (plugin.sit.containsKey(player.getName())) { - return true; + if (plugin.sit.containsKey(player.getName())) { + if (player.isInsideVehicle()) { + return true; + } else { + plugin.unSit(player); } - } else if (plugin.sit.containsKey(player.getName())) { - plugin.unSit(player); } return false; }