Fix #209 woops my fault

This commit is contained in:
Mats 2016-03-13 16:48:07 +01:00
parent 669ec3f453
commit 78ab7c840a
1 changed files with 5 additions and 3 deletions

View File

@ -93,12 +93,14 @@ public class ArmorListener implements Listener {
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
public void onRespawn(PlayerRespawnEvent e) {
sendDelayedArmorUpdate(e.getPlayer());
if (ViaVersion.getInstance().isPorted(e.getPlayer()))
sendDelayedArmorUpdate(e.getPlayer());
}
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
public void onWorldChange(PlayerChangedWorldEvent e){
sendArmorUpdate(e.getPlayer());
public void onWorldChange(PlayerChangedWorldEvent e) {
if (ViaVersion.getInstance().isPorted(e.getPlayer()))
sendArmorUpdate(e.getPlayer());
}
public void sendDelayedArmorUpdate(final Player player) {