Fix multi-map KzedMap rendering (default cave not rendered issue)
This commit is contained in:
parent
f6f4ee26c1
commit
855d9331bf
1 changed files with 8 additions and 1 deletions
|
|
@ -76,7 +76,14 @@ public class KzedMapTile extends MapTile {
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean render(MapChunkCache cache, String mapname) {
|
public boolean render(MapChunkCache cache, String mapname) {
|
||||||
return map.render(cache, this, MapManager.mapman.getTileFile(this));
|
boolean rslt = false;
|
||||||
|
for(MapTileRenderer r : map.renderers) {
|
||||||
|
if((mapname == null) || (r.getName().equals(mapname))) {
|
||||||
|
KzedMapTile t = new KzedMapTile(world, map, r, px, py);
|
||||||
|
rslt |= map.render(cache, t, MapManager.mapman.getTileFile(t));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return rslt;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<DynmapChunk> getRequiredChunks() {
|
public List<DynmapChunk> getRequiredChunks() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue