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:
@@ -24,7 +24,7 @@ public class LocationSerializer implements TypeSerializer<Location> {
|
|||||||
@Override
|
@Override
|
||||||
@Nullable
|
@Nullable
|
||||||
public Location deserialize(final Type type, final ConfigurationNode source) throws SerializationException {
|
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;
|
if (world == null) return null;
|
||||||
return new Location(
|
return new Location(
|
||||||
world,
|
world,
|
||||||
|
|||||||
Reference in New Issue
Block a user