fix: resolve jodatime->java.time build errors (ZoneId imports, Timestamp/Instant conversions, plus arg order)
This commit is contained in:
1 parent
92a888d618
commit
2047ee6cdd
5 files changed
+6
-4
No files matched your search
@@ -42,6 +42,7 @@ import engine.server.login.LoginServerMsgHandler;
|
||||
import engine.server.world.WorldServer;
|
||||
import engine.util.MiscUtils;
|
||||
import java.time.Instant;
|
||||
import java.time.ZoneId;
|
||||
import org.pmw.tinylog.Logger;
|
||||
|
||||
import java.sql.ResultSet;
|
||||
@@ -718,7 +719,7 @@ public class PlayerCharacter extends AbstractCharacter {
|
||||
writer.putInt(token);
|
||||
writer.putInt((int) timeLeft / 1000);
|
||||
}
|
||||
Instant enterWorld = playerCharacter.timestamps.get("EnterWorld").toInstant();
|
||||
Instant enterWorld = Instant.ofEpochMilli(playerCharacter.timestamps.get("EnterWorld"));
|
||||
writer.putDateTime(enterWorld);
|
||||
|
||||
writer.putInt(0x49EF1E98); //DUnno what playerCharacter is.
|
||||
|
||||
Reference in new issue
Block a user