Small code cleaning

This commit is contained in:
Shevchik 2013-09-03 01:28:12 +04:00
parent 401aacaf3a
commit e5ce4c0f8c

View File

@ -44,12 +44,12 @@ public class EventListener implements Listener {
private boolean isSitting(Player player) { private boolean isSitting(Player player) {
if (player.isInsideVehicle()) { if (plugin.sit.containsKey(player.getName())) {
if (plugin.sit.containsKey(player.getName())) { if (player.isInsideVehicle()) {
return true; return true;
} else {
plugin.unSit(player);
} }
} else if (plugin.sit.containsKey(player.getName())) {
plugin.unSit(player);
} }
return false; return false;
} }