Skip to content

Commit 49b8e01

Browse files
committed
Save location as UnloadedWorldLocation to deserialize crash
1 parent 6119823 commit 49b8e01

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/mvplugins/multiverse/inventories/share/LocationSerializer.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package org.mvplugins.multiverse.inventories.share;
22

33
import org.bukkit.Location;
4+
import org.mvplugins.multiverse.core.world.location.UnloadedWorldLocation;
45
import org.mvplugins.multiverse.inventories.util.LegacyParsers;
56

67
import java.util.Map;
@@ -30,6 +31,6 @@ public Location deserialize(Object obj) {
3031

3132
@Override
3233
public Object serialize(Location location) {
33-
return location;
34+
return new UnloadedWorldLocation(location);
3435
}
3536
}

0 commit comments

Comments
 (0)