Skip to content

Commit

Permalink
Merge pull request #1522 from madsboddum/fix/crafting/draft-schematic…
Browse files Browse the repository at this point in the history
…-persistence

Fixed draft schematic persistence problem, where a server reboot woul…
  • Loading branch information
Josh-Larson authored Apr 26, 2024
2 parents 7e6db8a + bfc2d6b commit e2f09b1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ internal class PlayerObjectOwnerNP(private val obj: PlayerObject) : MongoPersist
bb.addInt(maxMeds) // 15
bb.addObject(groupWaypoints) // 16
bb.addInt(jediState) // 17
bb.incrementOperandCount(19)
bb.incrementOperandCount(18)
}

fun parseBaseline9(buffer: NetBuffer) {
Expand Down Expand Up @@ -223,6 +223,7 @@ internal class PlayerObjectOwnerNP(private val obj: PlayerObject) : MongoPersist
craftingStage = data.getInteger("craftingStage", craftingStage)
nearbyCraftStation = data.getLong("nearbyCraftStation", nearbyCraftStation)
draftSchematics.putAll(data.getMap("draftSchematics", Long::class.java, Int::class.java))
draftSchematics.resetUpdateCount() // If we don't do this, the client will display 0 draft schematics after a server reboot for all players
craftingComponentBioLink = data.getLong("craftingComponentBioLink", craftingComponentBioLink)
experimentPoints = data.getInteger("experimentPoints", experimentPoints)
expModified = data.getInteger("expModified", expModified)
Expand Down

0 comments on commit e2f09b1

Please sign in to comment.