diff --git a/src/com/cnaude/chairs/EventListener.java b/src/com/cnaude/chairs/EventListener.java index 064dca9..a5f6dea 100644 --- a/src/com/cnaude/chairs/EventListener.java +++ b/src/com/cnaude/chairs/EventListener.java @@ -45,12 +45,25 @@ public class EventListener implements Listener { Location loc = player.getLocation(); if (Double.isNaN(loc.getY())) { - loc = player.getBedSpawnLocation(); - if (loc == null) + Location teleportloc = null; + //corect y, there should be a valid chair somewhere up + Location temploc = loc.clone(); + for (int i = 1 ; i