mirror of
https://github.com/BentoBoxWorld/Warps.git
synced 2024-11-25 03:55:25 +01:00
Minor variable rename
This commit is contained in:
parent
ecebbcd039
commit
ae172b9fdf
@ -199,15 +199,15 @@ public class WarpSignsManager {
|
|||||||
warpsData = handler.loadObject(WARPS);
|
warpsData = handler.loadObject(WARPS);
|
||||||
// Load into map
|
// Load into map
|
||||||
if (warpsData != null) {
|
if (warpsData != null) {
|
||||||
warpsData.getWarpSigns().forEach((k,v) -> {
|
warpsData.getWarpSigns().forEach((location,uuid) -> {
|
||||||
if (k != null && k.getWorld() != null) {
|
if (location != null && location.getWorld() != null) {
|
||||||
if (k.getWorld().isChunkLoaded(k.getBlockX() >> 4, k.getBlockZ() >> 4)
|
if (location.getWorld().isChunkLoaded(location.getBlockX() >> 4, location.getBlockZ() >> 4)
|
||||||
&& !k.getBlock().getType().name().contains("SIGN")) {
|
&& !location.getBlock().getType().name().contains("SIGN")) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add to map
|
// Add to map
|
||||||
getWarpMap(k.getWorld()).put(v, k);
|
getWarpMap(location.getWorld()).put(uuid, location);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user