forked from SteamWar/SteamWar
Fix DynamicRegionSystem#get(Tile)
This commit is contained in:
+1
-1
@@ -102,7 +102,7 @@ public class DynamicRegionSystem implements RegionSystem {
|
|||||||
|
|
||||||
public @NonNull Region get(@Nullable Tile tile) {
|
public @NonNull Region get(@Nullable Tile tile) {
|
||||||
if (tile == null) return getGlobalRegion();
|
if (tile == null) return getGlobalRegion();
|
||||||
return get(tile.getCenterLocation().getBlockX(), tile.getCenterLocation().getBlockZ(), true, Collections.emptySet());
|
return get(tile.getCenterLocation().getBlockX(), tile.getCenterLocation().getBlockZ(), true, regionMap.values());
|
||||||
}
|
}
|
||||||
|
|
||||||
private Region get(int x, int z, boolean fastCache, Collection<Region> regions) {
|
private Region get(int x, int z, boolean fastCache, Collection<Region> regions) {
|
||||||
|
|||||||
Reference in New Issue
Block a user