Skip to content

Commit

Permalink
Fix oversight in external player skip count
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomm0017 committed Apr 8, 2019
1 parent a91c676 commit 86c8969
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ object PlayerSynchronizationTask : SynchronizationTask<Player> {
continue
}
val next = if (nextIndex < player.world.players.capacity) player.world.players[nextIndex] else null
if (next != null && shouldAdd(player, next) || next?.tile?.asTileHashMultiplier != player.gpiTileHashMultipliers[nextIndex]) {
if (next != null && (shouldAdd(player, next) || next.tile.asTileHashMultiplier != player.gpiTileHashMultipliers[nextIndex])) {
break
}
skipCount++
Expand Down

0 comments on commit 86c8969

Please sign in to comment.