mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2026-08-01 14:39:13 -06:00
Fixed bug causing null or corrupt players/bots
This commit is contained in:
parent
fd0976e5d5
commit
9a872f763d
1 changed files with 2 additions and 2 deletions
|
|
@ -107,7 +107,7 @@ object PlayerRenderer {
|
|||
if (offsetX < 0) {
|
||||
offsetX += 32
|
||||
}
|
||||
val appearance = info.appearanceStamps[other.index and 0x800] != other.updateMasks.appearanceStamp
|
||||
val appearance = info.appearanceStamps[other.index] != other.updateMasks.appearanceStamp
|
||||
val update = appearance || other.updateMasks.isUpdateRequired || other.updateMasks.hasSynced()
|
||||
buffer.putBits(1, if (update) 1 else 0)
|
||||
buffer.putBits(5, offsetX)
|
||||
|
|
@ -117,7 +117,7 @@ object PlayerRenderer {
|
|||
info.localPlayers.add(other)
|
||||
if (update) {
|
||||
if (appearance) {
|
||||
info.appearanceStamps[other.index and 0x800] = other.updateMasks.appearanceStamp
|
||||
info.appearanceStamps[other.index] = other.updateMasks.appearanceStamp
|
||||
}
|
||||
writeMaskUpdates(player, other, flags, appearance, true)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue