Improve RegionData#setStore

This commit is contained in:
2026-08-27 08:39:24 +02:00
parent 8cde6b7ad2
commit dbacfc1ece
@@ -44,9 +44,9 @@ public abstract class RegionData {
store.loadRegionData(this); store.loadRegionData(this);
} }
public void setStore(RegionDataStore store) { public final void setStore(RegionDataStore store) {
this.store = store; this.store = store;
store.loadRegionData(this); store.saveRegionData(this);
} }
protected void initialize() { protected void initialize() {
@@ -91,11 +91,11 @@ public abstract class RegionData {
return (List) properties; return (List) properties;
} }
public SchematicNode getTestblockSchematic() { public final SchematicNode getTestblockSchematic() {
return testblockSchematic.get(); return testblockSchematic.get();
} }
public void setTestblockSchematic(SchematicNode schematic) { public final void setTestblockSchematic(SchematicNode schematic) {
testblockSchematic.set(schematic); testblockSchematic.set(schematic);
store.saveRegionData(this); store.saveRegionData(this);
} }