From 92630f4e1027f58f12be1982dce11f8e5c61c414 Mon Sep 17 00:00:00 2001 From: YoyoNow Date: Sun, 1 Mar 2026 13:48:22 +0100 Subject: [PATCH] Improve RegionData#setStore --- .../src/de/steamwar/bausystem/region/RegionData.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/region/RegionData.java b/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/region/RegionData.java index 7a3509ce..cbeebb69 100644 --- a/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/region/RegionData.java +++ b/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/region/RegionData.java @@ -44,9 +44,9 @@ public abstract class RegionData { store.loadRegionData(this); } - public void setStore(RegionDataStore store) { + public final void setStore(RegionDataStore store) { this.store = store; - store.loadRegionData(this); + store.saveRegionData(this); } protected void initialize() { @@ -91,11 +91,11 @@ public abstract class RegionData { return (List) properties; } - public SchematicNode getTestblockSchematic() { + public final SchematicNode getTestblockSchematic() { return testblockSchematic.get(); } - public void setTestblockSchematic(SchematicNode schematic) { + public final void setTestblockSchematic(SchematicNode schematic) { testblockSchematic.set(schematic); store.saveRegionData(this); }