Fixed #7818
This commit is contained in:
@@ -300,6 +300,10 @@ public class World{
|
||||
|
||||
ObjectSet<UnlockableContent> content = new ObjectSet<>();
|
||||
|
||||
//resources can be outside area
|
||||
boolean border = state.rules.limitMapArea;
|
||||
state.rules.limitMapArea = false;
|
||||
|
||||
//TODO duplicate code?
|
||||
for(Tile tile : tiles){
|
||||
if(getDarkness(tile.x, tile.y) >= 3){
|
||||
@@ -312,6 +316,7 @@ public class World{
|
||||
if(tile.wallDrop() != null) content.add(tile.wallDrop());
|
||||
if(liquid != null) content.add(liquid);
|
||||
}
|
||||
state.rules.limitMapArea = border;
|
||||
|
||||
state.rules.cloudColor = sector.planet.landCloudColor;
|
||||
state.rules.env = sector.planet.defaultEnv;
|
||||
|
||||
@@ -1136,7 +1136,7 @@ public class PlanetDialog extends BaseDialog implements PlanetInterfaceRenderer{
|
||||
t.add("@sectors.resources").padRight(4);
|
||||
for(UnlockableContent c : sector.info.resources){
|
||||
if(c == null) continue; //apparently this is possible.
|
||||
t.image(c.uiIcon).padRight(3).size(iconSmall);
|
||||
t.image(c.uiIcon).padRight(3).scaling(Scaling.fit).size(iconSmall);
|
||||
}
|
||||
}).padLeft(10f).fillX().row();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user