From 53ec8b02db66905ebbcda5d4ea17c9703df10e0e Mon Sep 17 00:00:00 2001 From: cnaude Date: Tue, 20 Nov 2012 19:17:15 -0700 Subject: [PATCH] Switched from Item.passenger mode to PacketGenerator mode. --- src/net/spoothie/chairs/EventListener.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/net/spoothie/chairs/EventListener.java b/src/net/spoothie/chairs/EventListener.java index 866a41d..769a892 100644 --- a/src/net/spoothie/chairs/EventListener.java +++ b/src/net/spoothie/chairs/EventListener.java @@ -93,6 +93,10 @@ public class EventListener implements Listener { if (plugin.notifyplayer) { player.sendMessage(ChatColor.GRAY + "You are no longer sitting."); } + Packet40EntityMetadata packet = new Packet40EntityMetadata(player.getPlayer().getEntityId(), new ChairWatcher((byte) 0), false); + for (Player play : Bukkit.getOnlinePlayers()) { + ((CraftPlayer) play).getHandle().netServerHandler.sendPacket(packet); + } return; }