mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Placement options removals
This commit is contained in:
parent
4c48f812d5
commit
1e3ff59b26
@ -19,6 +19,7 @@
|
|||||||
package com.volmit.iris.core.edit;
|
package com.volmit.iris.core.edit;
|
||||||
|
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
|
import com.google.gson.JsonObject;
|
||||||
import com.volmit.iris.Iris;
|
import com.volmit.iris.Iris;
|
||||||
import com.volmit.iris.core.service.WandSVC;
|
import com.volmit.iris.core.service.WandSVC;
|
||||||
import com.volmit.iris.engine.object.IrisDirection;
|
import com.volmit.iris.engine.object.IrisDirection;
|
||||||
@ -157,7 +158,14 @@ public class JigsawEditor implements Listener {
|
|||||||
public void close() {
|
public void close() {
|
||||||
exit();
|
exit();
|
||||||
try {
|
try {
|
||||||
IO.writeAll(targetSaveLocation, new JSONObject(new Gson().toJson(piece)).toString(4));
|
JSONObject j = new JSONObject(new Gson().toJson(piece));
|
||||||
|
// Remove sub-key
|
||||||
|
// J.attempt(() -> j.getJSONObject("placementOptions").remove("translateCenter"));
|
||||||
|
|
||||||
|
// remove root key
|
||||||
|
// j.remove("placementOptions");
|
||||||
|
|
||||||
|
IO.writeAll(targetSaveLocation, j.toString(4));
|
||||||
} catch(IOException e) {
|
} catch(IOException e) {
|
||||||
Iris.reportError(e);
|
Iris.reportError(e);
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user