mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-07-13 17:24:25 +00:00
Fix unable to locate sign issue.
This commit is contained in:
parent
63888827aa
commit
98a4a9889e
3 changed files with 94 additions and 30 deletions
|
@ -157,11 +157,13 @@ public class MainUtil {
|
|||
|
||||
public static void update(final Location loc) {
|
||||
final String world = loc.getWorld();
|
||||
int ox = loc.getX() >> 4;
|
||||
int oz = loc.getX() >> 4;
|
||||
final ArrayList<ChunkLoc> chunks = new ArrayList<>();
|
||||
final int distance = BukkitUtil.getViewDistance();
|
||||
for (int cx = -distance; cx < distance; cx++) {
|
||||
for (int cz = -distance; cz < distance; cz++) {
|
||||
final ChunkLoc chunk = new ChunkLoc(cx, cz);
|
||||
for (int cx = -distance; cx <= distance; cx++) {
|
||||
for (int cz = -distance; cz <= distance; cz++) {
|
||||
final ChunkLoc chunk = new ChunkLoc(ox + cx, oz + cz);
|
||||
chunks.add(chunk);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue