mirror of
https://github.com/cabaletta/baritone
synced 2024-12-28 18:02:17 +00:00
Fix compiler error and revert addAll meme
This commit is contained in:
parent
9e27a59d7f
commit
812c23e1ca
@ -116,7 +116,9 @@ public final class CachedWorld implements Helper {
|
||||
int regionZ = zoff + playerRegionZ;
|
||||
CachedRegion region = getOrCreateRegion(regionX, regionZ);
|
||||
if (region != null) {
|
||||
res.addAll(region.getLocationsOf(block));
|
||||
for (BlockPos pos : region.getLocationsOf(block)) {
|
||||
res.add(pos);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -49,7 +49,7 @@ public enum WorldProvider implements IWorldProvider, Helper {
|
||||
private WorldData currentWorld;
|
||||
|
||||
@Override
|
||||
public final IWorldData getCurrentWorld() {
|
||||
public final WorldData getCurrentWorld() {
|
||||
return this.currentWorld;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user