13
0

Fix Air Problem

Dieser Commit ist enthalten in:
jojo 2020-11-15 08:40:01 +01:00
Ursprung f9966c3377
Commit be105ac770

Datei anzeigen

@ -52,7 +52,7 @@ public class PlayerSeatListener extends BasicListener {
event.getPlayer().getVehicle().remove();
Location location = event.getClickedBlock().getLocation();
if (location.getWorld().getBlockAt(location.getBlockX(), location.getBlockY() + 1, location.getBlockZ()).getType() == Material.AIR)
if (location.getWorld().getBlockAt(location.getBlockX(), location.getBlockY() + 1, location.getBlockZ()).getType() != Material.AIR)
return;
Arrow arrow = (Arrow) event.getPlayer().getWorld().spawnEntity(location.add(0.5, 0, 0.5), EntityType.ARROW);