mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-12-15 15:20:57 -08:00
Fixed #11215
This commit is contained in:
parent
e96c21d610
commit
bf77474c93
1 changed files with 2 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ import mindustry.world.*;
|
|||
import static mindustry.Vars.*;
|
||||
|
||||
public abstract class PlanetGenerator extends BasicGenerator implements HexMesher{
|
||||
protected static final ItemSeq tmpItems = new ItemSeq();
|
||||
protected static @Nullable ItemSeq tmpItems;
|
||||
|
||||
public int baseSeed = 0;
|
||||
public int seed = 0;
|
||||
|
|
@ -58,6 +58,7 @@ public abstract class PlanetGenerator extends BasicGenerator implements HexMeshe
|
|||
|
||||
public @Nullable Sector findLaunchCandidate(Sector destination, @Nullable Sector selected){
|
||||
if(!destination.allowLaunchLoadout() && destination.preset != null){
|
||||
if(tmpItems == null) tmpItems = new ItemSeq();
|
||||
tmpItems.clear();
|
||||
|
||||
var rules = destination.preset.generator.map.rules();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue