Small code cleaning

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

View File

@ -44,13 +44,13 @@ 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 {
} else if (plugin.sit.containsKey(player.getName())) {
plugin.unSit(player); plugin.unSit(player);
} }
}
return false; return false;
} }