diff --git a/core/src/io/anuke/mindustry/editor/MapEditorDialog.java b/core/src/io/anuke/mindustry/editor/MapEditorDialog.java index 2bd3d9bd27..df834fb7f7 100644 --- a/core/src/io/anuke/mindustry/editor/MapEditorDialog.java +++ b/core/src/io/anuke/mindustry/editor/MapEditorDialog.java @@ -232,6 +232,7 @@ public class MapEditorDialog extends Dialog implements Disposable{ lastSavedRules = state.rules; hide(); //only reset the player; logic.reset() will clear entities, which we do not want + state.teams = new Teams(); player.reset(); state.rules = Gamemode.editor.apply(lastSavedRules.copy()); world.setMap(new Map(StringMap.of(