Fix draggingwidget hook
This commit is contained in:
@@ -277,8 +277,8 @@ public final class Player extends Actor {
|
||||
}
|
||||
|
||||
this.username = new Username(var1.readStringCp1252NullTerminated(), KeyHandler.loginType);
|
||||
this.__q_125();
|
||||
this.__u_128();
|
||||
this.clearIsFriend();
|
||||
this.clearIsInClanChat();
|
||||
if(this == Canvas.localPlayer) {
|
||||
RunException.localPlayerName = this.username.getName();
|
||||
}
|
||||
@@ -339,7 +339,7 @@ public final class Player extends Actor {
|
||||
@Export("isClanMember")
|
||||
boolean isClanMember() {
|
||||
if(this.isInClanChat == TriBool.TriBool_unknown) {
|
||||
this.__g_129();
|
||||
this.updateIsInClanChat();
|
||||
}
|
||||
|
||||
return this.isInClanChat == TriBool.TriBool_true;
|
||||
@@ -350,8 +350,8 @@ public final class Player extends Actor {
|
||||
signature = "(I)V",
|
||||
garbageValue = "1982407728"
|
||||
)
|
||||
@Export("__u_128")
|
||||
void __u_128() {
|
||||
@Export("clearIsInClanChat")
|
||||
void clearIsInClanChat() {
|
||||
this.isInClanChat = TriBool.TriBool_unknown;
|
||||
}
|
||||
|
||||
@@ -360,8 +360,8 @@ public final class Player extends Actor {
|
||||
signature = "(I)V",
|
||||
garbageValue = "833825629"
|
||||
)
|
||||
@Export("__g_129")
|
||||
void __g_129() {
|
||||
@Export("updateIsInClanChat")
|
||||
void updateIsInClanChat() {
|
||||
this.isInClanChat = PacketWriter.clanChat != null && PacketWriter.clanChat.contains(this.username)?TriBool.TriBool_true:TriBool.TriBool_false;
|
||||
}
|
||||
|
||||
|
||||
@@ -862,7 +862,7 @@ public abstract class RSClientMixin implements RSClient
|
||||
return clanMemberManager != null && clanMemberManager.isMember(createName(name, getLoginType()));
|
||||
}
|
||||
|
||||
@FieldHook("clickedWidget")
|
||||
@FieldHook("isDraggingWidget")
|
||||
@Inject
|
||||
public static void draggingWidgetChanged(int idx)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user