We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1301257 commit d17572bCopy full SHA for d17572b
src/main/kotlin/gg/skytils/skytilsmod/listeners/DungeonListener.kt
@@ -345,7 +345,14 @@ object DungeonListener {
345
teammate.classLevel = classLevel
346
}
347
348
- teammate.tabEntryIndex = pos
+ if (teammate.tabEntryIndex != pos) {
349
+ println("Updating ${teammate.playerName} tab entry index from ${teammate.tabEntryIndex} to $pos")
350
+ team.values.find { it.tabEntryIndex == pos }?.let {
351
+ println("Removing $it from team due to tab entry index collision")
352
+ team.remove(it.playerName)
353
+ }
354
+ teammate.tabEntryIndex = pos
355
356
357
teammate.player = mc.theWorld.playerEntities.find {
358
it.name == teammate.playerName && it.uniqueID.version() == 4
0 commit comments