@@ -112,14 +112,12 @@ public WorldManagePage(World world, Path backupsDir, Profile profile, String id)
112112
113113 if (world .getGameVersion () != null && world .getGameVersion ().isAtLeast ("1.20" , "23w14a" )) {
114114 toolbar .addNavigationDrawerItem (i18n ("version.launch" ), SVG .ROCKET_LAUNCH , this ::launch , advancedListItem -> advancedListItem .setDisable (isReadOnly ()));
115- toolbar .addNavigationDrawerItem (i18n ("version.launch_script" ), SVG .SCRIPT , this ::generateLaunchScript , null );
116115 }
117116
118117 if (ChunkBaseApp .isSupported (world )) {
119118 PopupMenu chunkBasePopupMenu = new PopupMenu ();
120119 JFXPopup chunkBasePopup = new JFXPopup (chunkBasePopupMenu );
121120
122-
123121 chunkBasePopupMenu .getContent ().addAll (
124122 new IconedMenuItem (SVG .EXPLORE , i18n ("world.chunkbase.seed_map" ), () -> ChunkBaseApp .openSeedMap (world ), chunkBasePopup ),
125123 new IconedMenuItem (SVG .VISIBILITY , i18n ("world.chunkbase.stronghold" ), () -> ChunkBaseApp .openStrongholdFinder (world ), chunkBasePopup ),
@@ -144,6 +142,14 @@ public WorldManagePage(World world, Path backupsDir, Profile profile, String id)
144142 PopupMenu managePopupMenu = new PopupMenu ();
145143 JFXPopup managePopup = new JFXPopup (managePopupMenu );
146144
145+ if (world .getGameVersion () != null && world .getGameVersion ().isAtLeast ("1.20" , "23w14a" )) {
146+ managePopupMenu .getContent ().addAll (
147+ new IconedMenuItem (SVG .ROCKET_LAUNCH , i18n ("version.launch" ), this ::launch , managePopup ),
148+ new IconedMenuItem (SVG .SCRIPT , i18n ("version.launch_script" ), this ::generateLaunchScript , managePopup ),
149+ new MenuSeparator ()
150+ );
151+ }
152+
147153 managePopupMenu .getContent ().addAll (
148154 new IconedMenuItem (SVG .OUTPUT , i18n ("world.export" ), () -> WorldManageUIUtils .export (world , sessionLockChannel ), managePopup ),
149155 new IconedMenuItem (SVG .DELETE , i18n ("world.delete" ), () -> WorldManageUIUtils .delete (world , () -> fireEvent (new PageCloseEvent ()), sessionLockChannel ), managePopup ),
0 commit comments