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) {
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user