mirror of
https://github.com/Melledy/Nebula.git
synced 2026-09-20 01:29:54 +02:00
Delete player when deleting account
This commit is contained in:
@@ -4,6 +4,7 @@ import org.bson.types.ObjectId;
|
||||
|
||||
import dev.morphia.annotations.Entity;
|
||||
import dev.morphia.annotations.Id;
|
||||
import dev.morphia.annotations.Indexed;
|
||||
import emu.nebula.data.resources.GachaDef;
|
||||
import emu.nebula.data.resources.GachaDef.GachaPackage;
|
||||
import emu.nebula.data.resources.GachaPkgDef;
|
||||
@@ -18,8 +19,9 @@ public class GachaBannerInfo implements GameDatabaseObject {
|
||||
@Id
|
||||
private ObjectId id;
|
||||
|
||||
private int bannerId;
|
||||
@Indexed
|
||||
private int playerUid;
|
||||
private int bannerId;
|
||||
|
||||
private int total;
|
||||
private int missTimesA;
|
||||
|
||||
@@ -29,8 +29,8 @@ public class GachaManager extends PlayerManager {
|
||||
}
|
||||
|
||||
return this.bannerInfos.computeIfAbsent(
|
||||
gachaData.getId(),
|
||||
i -> new GachaBannerInfo(this.getPlayer(), gachaData)
|
||||
gachaData.getId(),
|
||||
i -> new GachaBannerInfo(this.getPlayer(), gachaData)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user