fix(avatar): prevent player displacement when sitting or sleeping

Replace AvatarManager.checkIfAnimatingOnTopOf with P-code to fix an
issue where players were pushed off others within 100 pixels. This
also bypasses decompilation errors in the original class loops.
This commit is contained in:
Snipzil committed 2026-10-18 00:04:23 -04:00
1 parent 783feb7788
commit 3c2053f434
3 files changed
+27 -1

No files matched your search

@@ -0,0 +1,20 @@
method
name "checkIfAnimatingOnTopOf"
flag HAS_PARAM_NAMES
param QName(PackageNamespace(""),"int")
paramname "userId"
returns QName(PackageNamespace(""),"void")
body
maxstack 1
localcount 2
initscopedepth 0
maxscopedepth 1
code
getlocal0
pushscope
returnvoid
end ; code
end ; body
end ; method