Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-08 17:20:24 +01:00
Merge pull request #210 from Matsv/fixarmortjes
Fix #209 woops my fault
Dieser Commit ist enthalten in:
Commit
7cfba0b602
@ -93,11 +93,13 @@ public class ArmorListener implements Listener {
|
|||||||
|
|
||||||
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
|
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
|
||||||
public void onRespawn(PlayerRespawnEvent e) {
|
public void onRespawn(PlayerRespawnEvent e) {
|
||||||
|
if (ViaVersion.getInstance().isPorted(e.getPlayer()))
|
||||||
sendDelayedArmorUpdate(e.getPlayer());
|
sendDelayedArmorUpdate(e.getPlayer());
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
|
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
|
||||||
public void onWorldChange(PlayerChangedWorldEvent e) {
|
public void onWorldChange(PlayerChangedWorldEvent e) {
|
||||||
|
if (ViaVersion.getInstance().isPorted(e.getPlayer()))
|
||||||
sendArmorUpdate(e.getPlayer());
|
sendArmorUpdate(e.getPlayer());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren