mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2026-08-10 21:21:06 -06:00
Move packets to Protocol class, general refactoring
This commit is contained in:
parent
b3a5fdbec9
commit
49ccfc34ec
142 changed files with 3092 additions and 3089 deletions
18
client/src/main/java/AreaSoundManager.java
Normal file
18
client/src/main/java/AreaSoundManager.java
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import org.openrs2.deob.annotation.OriginalArg;
|
||||
import org.openrs2.deob.annotation.OriginalMember;
|
||||
import org.openrs2.deob.annotation.Pc;
|
||||
|
||||
public class AreaSoundManager {
|
||||
@OriginalMember(owner = "client!wc", name = "a", descriptor = "(Lclient!e;I)V")
|
||||
public static void remove(@OriginalArg(0) Player arg0) {
|
||||
@Pc(10) AreaSound local10 = (AreaSound) Static93.aClass133_7.get(arg0.username.encode37());
|
||||
if (local10 == null) {
|
||||
return;
|
||||
}
|
||||
if (local10.primaryStream != null) {
|
||||
client.soundStream.removeSubStream(local10.primaryStream);
|
||||
local10.primaryStream = null;
|
||||
}
|
||||
local10.unlink();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue