From fb99ab6d6cebf727840e88fa1f4e2bac23f3cbb9 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sat, 26 Jun 2021 23:15:26 +0100 Subject: [PATCH] Fix syntax error in Lua in environment.md --- _en/map/environment.md | 2 +- _it/map/environment.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_en/map/environment.md b/_en/map/environment.md index fe7cf6d..cd26fc2 100644 --- a/_en/map/environment.md +++ b/_en/map/environment.md @@ -202,7 +202,7 @@ local function emerge_callback(pos, action, -- Send progress message if context.total_blocks == context.loaded_blocks then minetest.chat_send_all("Finished loading blocks!") - end + else local perc = 100 * context.loaded_blocks / context.total_blocks local msg = string.format("Loading blocks %d/%d (%.2f%%)", context.loaded_blocks, context.total_blocks, perc) diff --git a/_it/map/environment.md b/_it/map/environment.md index 7852a54..9e46c3d 100644 --- a/_it/map/environment.md +++ b/_it/map/environment.md @@ -184,7 +184,7 @@ local function mio_callback(pos, action, -- Invia messaggio indicante il progresso if param.blocchi_totali == param.blocchi_caricati then minetest.chat_send_all("Ho finito di caricare blocchi!") - end + else local percentuale = 100 * param.blocchi_caricati / param.blocchi_totali local msg = string.format("Caricamento blocchi %d/%d (%.2f%%)", param.blocchi_caricati, param.blocchi_totali, percentuale)