Fix compiler error and revert addAll meme

This commit is contained in:
Brady 2018-09-24 14:47:48 -05:00
parent 9e27a59d7f
commit 812c23e1ca
No known key found for this signature in database
GPG Key ID: 73A788379A197567
2 changed files with 4 additions and 2 deletions

View File

@ -116,7 +116,9 @@ public final class CachedWorld implements Helper {
int regionZ = zoff + playerRegionZ; int regionZ = zoff + playerRegionZ;
CachedRegion region = getOrCreateRegion(regionX, regionZ); CachedRegion region = getOrCreateRegion(regionX, regionZ);
if (region != null) { if (region != null) {
res.addAll(region.getLocationsOf(block)); for (BlockPos pos : region.getLocationsOf(block)) {
res.add(pos);
}
} }
} }
} }

View File

@ -49,7 +49,7 @@ public enum WorldProvider implements IWorldProvider, Helper {
private WorldData currentWorld; private WorldData currentWorld;
@Override @Override
public final IWorldData getCurrentWorld() { public final WorldData getCurrentWorld() {
return this.currentWorld; return this.currentWorld;
} }