Makes sure to ignore mounted players if handleVehicles is disabled
This commit is contained in:
parent
964eb0f898
commit
f8fae1fbf1
@ -110,6 +110,9 @@ public class PlayerEventListener implements Listener {
|
||||
//Teleport the vehicle to the player
|
||||
Entity playerVehicle = player.getVehicle();
|
||||
if (playerVehicle != null && !(playerVehicle instanceof Boat) && !(playerVehicle instanceof RideableMinecart)) {
|
||||
if (!Stargate.handleVehicles) {
|
||||
return;
|
||||
}
|
||||
|
||||
//Make sure the horse can be sat on
|
||||
if (playerVehicle instanceof AbstractHorse horse) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user