9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2026-01-06 15:51:50 +00:00

Fixed always having world name be 'world'

This commit is contained in:
Fisher
2022-03-07 09:51:07 -05:00
committed by GitHub
parent 2b832c33a4
commit 1e69dcea89

View File

@@ -27,7 +27,7 @@ public class LocationSerializer implements TypeSerializer<Location> {
@Override
@Nullable
public Location deserialize(final Type type, final ConfigurationNode source) throws SerializationException {
final World world = Bukkit.getWorld(WORLD);
final World world = Bukkit.getWorld(source.node(WORLD).getString());
if (world == null) return null;
return new Location(
world,