if (e == null) {
try {
Logic l = new Effect();
JSONObject json = logic.exportToJSON();
json.put("xy", (x * 32) + " " + (y * 32));
l.importFromJSON(json);
placeLogic(l);
} catch (Exception e2) {
System.err.println("Error creating virtual red pyramid logic at " + xy);
System.err.println(e2.getMessage());
}