From 30bc3a8ad155447f7529a71e10c9f935eb2be909 Mon Sep 17 00:00:00 2001 From: Benjamin Elsdon Date: Sun, 24 Apr 2022 18:17:08 +0800 Subject: [PATCH] Java-16 compatiable mail system (whoops) --- src/main/java/emu/grasscutter/game/Mail.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/emu/grasscutter/game/Mail.java b/src/main/java/emu/grasscutter/game/Mail.java index 2dc4ef688..9511bdb63 100644 --- a/src/main/java/emu/grasscutter/game/Mail.java +++ b/src/main/java/emu/grasscutter/game/Mail.java @@ -1,9 +1,12 @@ package emu.grasscutter.game; +import dev.morphia.annotations.Entity; + import java.time.Instant; import java.util.ArrayList; import java.util.List; +@Entity public class Mail { public int _id; @@ -52,6 +55,7 @@ public class Mail { this.stateValue = state; } + @Entity public static class MailContent { public String title; public String content; @@ -78,6 +82,7 @@ public class Mail { } } + @Entity public static class MailItem { public int itemId; public int itemCount;