Skip to content

Commit

Permalink
Singleplayer download warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Avanatiker committed Jan 20, 2024
1 parent 38e929e commit 95f6e26
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ object CaptureManager {
return
}

if (mc.isInSingleplayer) {
MessageManager.sendInfo("worldtools.log.info.singleplayer_capture")
}

val potentialName = customName?.let { potentialName ->
if (potentialName.length > MAX_WORLD_NAME_LENGTH) {
MessageManager.sendError(
Expand Down
4 changes: 3 additions & 1 deletion common/src/main/resources/assets/worldtools/lang/de_de.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
"worldtools.gui.manager.button.cancel": "Abbrechen",
"worldtools.gui.manager.button.config": "Konfiguration",
"worldtools.gui.manager.button.start_download": "Herunterladen",
"worldtools.gui.manager.button.stop_download": "Download stoppen",
"worldtools.gui.manager.title": "WorldTools Verwaltung",
"worldtools.gui.manager.world_name_placeholder": "Weltname eingeben... (Default: %s)",
"worldtools.key.categories": "WeltWerkzeuge",
Expand All @@ -87,5 +88,6 @@
"worldtools.log.error.not_capturing": "Es läuft noch keine Aufnahme!",
"worldtools.log.error.world_name_too_long": "Weltname \"%s\" darf nicht länger als %d Zeichen sein!",
"worldtools.log.info.started_capture": "Aufnahme von %s gestartet...",
"worldtools.log.info.stopping_capture": "Aufnahme von %s wird gestoppt..."
"worldtools.log.info.stopping_capture": "Aufnahme von %s wird gestoppt...",
"worldtools.log.info.singleplayer_capture": "EXPERIMENTAL: Die Aufnahme von Einzelspieler Welten ist noch nicht vollständig getestet und kann zu Fehlern führen!"
}
3 changes: 2 additions & 1 deletion common/src/main/resources/assets/worldtools/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,6 @@
"worldtools.log.error.not_capturing": "No capture is running yet!",
"worldtools.log.error.world_name_too_long": "World name \"%s\" is too long! (max %d characters)",
"worldtools.log.info.started_capture": "Started capturing %s...",
"worldtools.log.info.stopping_capture": "Stopping capture %s..."
"worldtools.log.info.stopping_capture": "Stopping capture %s...",
"worldtools.log.info.singleplayer_capture": "EXPERIMENTAL: Capturing in singleplayer is experimental and may not work as expected!"
}

0 comments on commit 95f6e26

Please sign in to comment.