mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-03 06:28:49 +00:00
Fix invalid warp locale not displaying, make home/warp lookup case-insensitive (#384)
This commit is contained in:
1 parent
a37bc8b3eb
commit
4db9bcf6ba
8 files changed
+89
-27
No files matched your search
@@ -186,6 +186,7 @@ public class HomesManager {
|
||||
|
||||
final Home home = existingHome
|
||||
.map(existing -> {
|
||||
existing.getMeta().setName(name);
|
||||
existing.update(position);
|
||||
return existing;
|
||||
})
|
||||
|
||||
@@ -124,13 +124,8 @@ public class WarpsManager {
|
||||
|
||||
final Warp warp = existingWarp
|
||||
.map(existing -> {
|
||||
existing.setX(position.getX());
|
||||
existing.setY(position.getY());
|
||||
existing.setZ(position.getZ());
|
||||
existing.setWorld(position.getWorld());
|
||||
existing.setServer(position.getServer());
|
||||
existing.setYaw(position.getYaw());
|
||||
existing.setPitch(position.getPitch());
|
||||
existing.getMeta().setName(name);
|
||||
existing.update(position);
|
||||
return existing;
|
||||
})
|
||||
.orElse(Warp.from(position, PositionMeta.create(name, "")));
|
||||
|
||||
Reference in new issue
Block a user