mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-12 00:47:26 -04:00
fix tab list packet handling bug
This commit is contained in:
parent
2af86755e9
commit
db88f83f72
@ -165,16 +165,15 @@ class TabListDataS2CP(buffer: PlayInByteBuffer) : PlayS2CPacket() {
|
||||
item
|
||||
} ?: continue
|
||||
|
||||
if (entity == null || entity !is PlayerEntity) {
|
||||
continue
|
||||
}
|
||||
|
||||
if (entity === connection.player) {
|
||||
entity.tabListItem.specialMerge(data)
|
||||
} else {
|
||||
tabListItem.merge(data)
|
||||
}
|
||||
|
||||
|
||||
if (entity == null || entity !is PlayerEntity) {
|
||||
continue
|
||||
}
|
||||
|
||||
entity.tabListItem = tabListItem
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user