Deep-Copies the CustomImageObjects from the original Object List in the GuiObjectManager to prevent the dirty check when closing the GUI from failing
This commit is contained in:
@@ -175,7 +175,11 @@ public class GuiObjectManager extends GuiScreen implements GuiReplayOverlay.NoOv
|
||||
nameInput.hint = I18n.format("replaymod.gui.objects.properties.name");
|
||||
|
||||
for(CustomImageObject customImageObject : initialObjects) {
|
||||
objectList.addElement(customImageObject);
|
||||
try {
|
||||
objectList.addElement(customImageObject.copy());
|
||||
} catch(IOException ioe) {
|
||||
ioe.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
objectList.addSelectionListener(new SelectionListener() {
|
||||
|
||||
Reference in New Issue
Block a user