Small code cleaning
This commit is contained in:
parent
401aacaf3a
commit
e5ce4c0f8c
@ -44,13 +44,13 @@ public class EventListener implements Listener {
|
||||
|
||||
|
||||
private boolean isSitting(Player player) {
|
||||
if (player.isInsideVehicle()) {
|
||||
if (plugin.sit.containsKey(player.getName())) {
|
||||
if (player.isInsideVehicle()) {
|
||||
return true;
|
||||
}
|
||||
} else if (plugin.sit.containsKey(player.getName())) {
|
||||
} else {
|
||||
plugin.unSit(player);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user