openrune: PlayerAppearenceChanged -> PlayerChanged
This commit is contained in:
@@ -36,7 +36,7 @@ import javax.annotation.Nullable;
|
||||
import net.runelite.api.annotations.VisibleForExternalPlugins;
|
||||
import net.runelite.api.coords.LocalPoint;
|
||||
import net.runelite.api.coords.WorldPoint;
|
||||
import net.runelite.api.events.PlayerAppearanceChanged;
|
||||
import net.runelite.api.events.PlayerChanged;
|
||||
import net.runelite.api.hooks.Callbacks;
|
||||
import net.runelite.api.hooks.DrawCallbacks;
|
||||
import net.runelite.api.vars.AccountType;
|
||||
@@ -2037,7 +2037,7 @@ public interface Client extends GameShell
|
||||
/**
|
||||
* Setting this to true will allow the client to compare
|
||||
* player appearance hashes and dispatch when one changes
|
||||
* via the {@link PlayerAppearanceChanged} event.
|
||||
* via the {@link PlayerChanged} event.
|
||||
* <p>
|
||||
* WARNING - THIS METHOD IS CPU-INTENSE.
|
||||
*/
|
||||
|
||||
@@ -7,7 +7,7 @@ import net.runelite.api.Player;
|
||||
* This will fire whenever the {@link net.runelite.api.PlayerAppearance} hash changes.
|
||||
*/
|
||||
@Value
|
||||
public class PlayerAppearanceChanged implements Event
|
||||
public class PlayerChanged implements Event
|
||||
{
|
||||
Player player;
|
||||
}
|
||||
@@ -45,7 +45,7 @@ import static net.runelite.api.SkullIcon.DEAD_MAN_TWO;
|
||||
import static net.runelite.api.SkullIcon.SKULL;
|
||||
import static net.runelite.api.SkullIcon.SKULL_FIGHT_PIT;
|
||||
import net.runelite.api.coords.LocalPoint;
|
||||
import net.runelite.api.events.PlayerAppearanceChanged;
|
||||
import net.runelite.api.events.PlayerChanged;
|
||||
import net.runelite.api.events.player.headicon.OverheadPrayerChanged;
|
||||
import net.runelite.api.events.player.headicon.PlayerSkullChanged;
|
||||
import net.runelite.api.mixins.Copy;
|
||||
@@ -299,7 +299,7 @@ public abstract class RSPlayerMixin implements RSPlayer
|
||||
|
||||
if (client.isComparingAppearance() && getPlayerAppearance().getHash() != appearanceHash)
|
||||
{
|
||||
client.getCallbacks().post(PlayerAppearanceChanged.class, new PlayerAppearanceChanged(this));
|
||||
client.getCallbacks().post(PlayerChanged.class, new PlayerChanged(this));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user