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