29303132333435363738
for (int x = 0; x < size; x++) { for (int y = 0; y < size; y++) { int chunkX = x + frag.getChunkX(); int chunkY = y + frag.getChunkY(); if (checkChunk(chunkX, chunkY)) { frag.addObject(new MapObjectVillage(x << 4, y << 4).setParent(this)); } } } }