diff --git a/core/src/mindustry/ui/dialogs/PlanetDialog.java b/core/src/mindustry/ui/dialogs/PlanetDialog.java index dcf61ea4d9..0ddd26830d 100644 --- a/core/src/mindustry/ui/dialogs/PlanetDialog.java +++ b/core/src/mindustry/ui/dialogs/PlanetDialog.java @@ -750,7 +750,7 @@ public class PlanetDialog extends BaseDialog implements PlanetInterfaceRenderer{ c.defaults().padBottom(5); if(sector.preset != null && sector.preset.description != null){ - c.add(sector.preset.displayDescription()).left().row(); + c.add(sector.preset.displayDescription()).width(420f).wrap().left().row(); } c.add(Core.bundle.get("sectors.time") + " [accent]" + sector.save.getPlayTime()).left().row(); diff --git a/core/src/mindustry/world/Tile.java b/core/src/mindustry/world/Tile.java index 776cb976f3..93b53d4f81 100644 --- a/core/src/mindustry/world/Tile.java +++ b/core/src/mindustry/world/Tile.java @@ -470,15 +470,15 @@ public class Tile implements Position, QuadTreeObject, Displayable{ getHitbox(rect); } - public Tile nearby(Point2 relative){ + public @Nullable Tile nearby(Point2 relative){ return world.tile(x + relative.x, y + relative.y); } - public Tile nearby(int dx, int dy){ + public @Nullable Tile nearby(int dx, int dy){ return world.tile(x + dx, y + dy); } - public Tile nearby(int rotation){ + public @Nullable Tile nearby(int rotation){ if(rotation == 0) return world.tile(x + 1, y); if(rotation == 1) return world.tile(x, y + 1); if(rotation == 2) return world.tile(x - 1, y); @@ -486,7 +486,7 @@ public class Tile implements Position, QuadTreeObject, Displayable{ return null; } - public Building nearbyBuild(int rotation){ + public @Nullable Building nearbyBuild(int rotation){ if(rotation == 0) return world.build(x + 1, y); if(rotation == 1) return world.build(x, y + 1); if(rotation == 2) return world.build(x - 1, y);