forked from SteamWar/SteamWar
Improve RegionData#setStore
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user