diff --git a/src/com/cnaude/chairs/core/PlayerSitData.java b/src/com/cnaude/chairs/core/PlayerSitData.java index ea57006..2189b12 100644 --- a/src/com/cnaude/chairs/core/PlayerSitData.java +++ b/src/com/cnaude/chairs/core/PlayerSitData.java @@ -17,7 +17,6 @@ public class PlayerSitData { private HashMap sit = new HashMap(); private HashMap sitblock = new HashMap(); - private HashMap sitblockbr = new HashMap(); private HashMap sitstopteleportloc = new HashMap(); private HashMap sittask = new HashMap(); @@ -46,7 +45,6 @@ public class PlayerSitData { arrow.setPassenger(player); sit.put(player.getName(), arrow); sitblock.put(block, player.getName()); - sitblockbr.put(player.getName(), block); startReSitTask(player); } catch (Exception e) { e.printStackTrace(); @@ -125,8 +123,7 @@ public class PlayerSitData { } else if (correctleaveposition) { player.teleport(tploc); } - sitblock.remove(sitblockbr.get(player.getName())); - sitblockbr.remove(player.getName()); + sitblock.values().remove(player.getName()); sitstopteleportloc.remove(player.getName()); Bukkit.getScheduler().cancelTask(sittask.get(player.getName())); sittask.remove(player.getName());