mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-24 00:11:31 +00:00
Fix morphia error when saving player to db
This commit is contained in:
parent
092dee8e2b
commit
098cf372c9
@ -1,6 +1,7 @@
|
|||||||
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;
|
|||||||
|
|
||||||
@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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user