Skip to content

Commit

Permalink
fix: toggling editor mode didn't work in open-to-lan SSP world
Browse files Browse the repository at this point in the history
World created with cheats off, but then opened to LAN with cheats on required
a quest reload to actually enable editing.

FTBTeam/FTB-Mods-Issues#1046
  • Loading branch information
desht committed Jan 19, 2024
1 parent 544c5d0 commit ee52a59
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ public static void moveQuest(long id, long chapter, double x, double y) {

public static void syncEditingMode(UUID teamId, boolean editingMode) {
if (ClientQuestFile.INSTANCE.getOrCreateTeamData(teamId).setCanEdit(Minecraft.getInstance().player, editingMode)) {
setEditorPermission(editingMode);
ClientQuestFile.INSTANCE.refreshGui();
}
}
Expand Down

0 comments on commit ee52a59

Please sign in to comment.