Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
b760fb1b
Commit
b760fb1b
authored
May 06, 2022
by
Melledy
Browse files
Fix morphia error when saving player to db
parent
000b1098
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/game/tower/TowerManager.java
View file @
b760fb1b
package
emu.grasscutter.game.tower
;
package
emu.grasscutter.game.tower
;
import
dev.morphia.annotations.Entity
;
import
dev.morphia.annotations.Entity
;
import
dev.morphia.annotations.Transient
;
import
emu.grasscutter.data.GameData
;
import
emu.grasscutter.data.GameData
;
import
emu.grasscutter.game.player.Player
;
import
emu.grasscutter.game.player.Player
;
import
emu.grasscutter.server.packet.send.PacketTowerEnterLevelRsp
;
import
emu.grasscutter.server.packet.send.PacketTowerEnterLevelRsp
;
...
@@ -9,11 +10,12 @@ import java.util.List;
...
@@ -9,11 +10,12 @@ import java.util.List;
@Entity
@Entity
public
class
TowerManager
{
public
class
TowerManager
{
private
final
Player
player
;
@Transient
private
final
Player
player
;
public
TowerManager
(
Player
player
)
{
public
TowerManager
(
Player
player
)
{
this
.
player
=
player
;
this
.
player
=
player
;
}
}
private
int
currentLevel
;
private
int
currentLevel
;
private
int
currentFloor
;
private
int
currentFloor
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment