mirror of
https://github.com/badvision/lawless-legends.git
synced 2025-03-01 03:30:04 +00:00
BUGFIX: Script clones were also cloning map assignments.
This commit is contained in:
parent
a4eaeb5cf1
commit
0c832fd6ea
@ -190,6 +190,8 @@ public class MapEditorTabControllerImpl extends MapEditorTabController {
|
||||
} else {
|
||||
try {
|
||||
Script script = TransferHelper.cloneObject(source, Script.class, "script");
|
||||
script.getLocationTrigger().clear();
|
||||
script.getIntervalTrigger().clear();
|
||||
script.setName(source.getName() + " CLONE");
|
||||
getCurrentEditor().addScript(script);
|
||||
editScript(script, getCurrentMap());
|
||||
|
Loading…
x
Reference in New Issue
Block a user