9
0
mirror of https://github.com/HibiscusMC/HibiscusCommons.git synced 2025-12-19 15:09:26 +00:00

fix: LocationSerializer no longer has the possibility to pass null to getWorld

This commit is contained in:
LoJoSho
2024-12-29 16:36:42 -06:00
parent 77e27cc63a
commit b5f832a62c

View File

@@ -24,7 +24,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(source.node(WORLD).getString());
final World world = Bukkit.getWorld(source.node(WORLD).getString(""));
if (world == null) return null;
return new Location(
world,