From 587c23605a6c9f1c06f7e16347122ea64fc35ece Mon Sep 17 00:00:00 2001 From: Anuken Date: Thu, 22 Aug 2024 07:18:38 -0400 Subject: [PATCH] Added temporary no-op fields for item/planet hidden items --- core/src/mindustry/type/Item.java | 4 ++++ core/src/mindustry/type/Planet.java | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/core/src/mindustry/type/Item.java b/core/src/mindustry/type/Item.java index 3ba4dc9de5..5d81790919 100644 --- a/core/src/mindustry/type/Item.java +++ b/core/src/mindustry/type/Item.java @@ -48,6 +48,10 @@ public class Item extends UnlockableContent implements Senseable{ public boolean buildable = true; public boolean hidden = false; + /** @deprecated no-op, do not use. */ + @Deprecated + public @Nullable Planet[] hiddenOnPlanets; + public Item(String name, Color color){ super(name); this.color = color; diff --git a/core/src/mindustry/type/Planet.java b/core/src/mindustry/type/Planet.java index 2a11f41ff2..047a288093 100644 --- a/core/src/mindustry/type/Planet.java +++ b/core/src/mindustry/type/Planet.java @@ -154,6 +154,11 @@ public class Planet extends UnlockableContent{ /** Loads the planet grid outline mesh. Clientside only. */ public Prov gridMeshLoader = () -> MeshBuilder.buildPlanetGrid(grid, outlineColor, outlineRad * radius); + /** @deprecated no-op, do not use. */ + @Deprecated + public Seq itemWhitelist = new Seq<>(), hiddenItems = new Seq<>(); + + public Planet(String name, Planet parent, float radius){ super(name);