From be105ac77055efaf4917e93ac34077961203c820 Mon Sep 17 00:00:00 2001 From: jojo Date: Sun, 15 Nov 2020 08:40:01 +0100 Subject: [PATCH] Fix Air Problem --- src/de/steamwar/spectatesystem/listener/PlayerSeatListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/steamwar/spectatesystem/listener/PlayerSeatListener.java b/src/de/steamwar/spectatesystem/listener/PlayerSeatListener.java index 212e1a4..35389fb 100644 --- a/src/de/steamwar/spectatesystem/listener/PlayerSeatListener.java +++ b/src/de/steamwar/spectatesystem/listener/PlayerSeatListener.java @@ -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);