mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-01-17 00:06:00 -05:00
Merge pull request #1522 from madsboddum/fix/crafting/draft-schematic-persistence
Fixed draft schematic persistence problem, where a server reboot woul…
This commit is contained in:
@@ -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) {
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user