aboutsummaryrefslogtreecommitdiff
path: root/clientmods
diff options
context:
space:
mode:
authorLoïc Blot <nerzhul@users.noreply.github.com>2017-03-17 07:54:49 +0100
committerGitHub <noreply@github.com>2017-03-17 07:54:49 +0100
commit7b74f04a611ddaf36d79c0c9ebbf7f2b89c12a64 (patch)
tree51f9cf13b08c9e4e444780ff479e3ffee4649699 /clientmods
parent0891975ad6c8d6d3e15b20f33b22cf5baca7eb62 (diff)
downloadminetest-7b74f04a611ddaf36d79c0c9ebbf7f2b89c12a64.tar.gz
minetest-7b74f04a611ddaf36d79c0c9ebbf7f2b89c12a64.tar.bz2
minetest-7b74f04a611ddaf36d79c0c9ebbf7f2b89c12a64.zip
[CSM] Fix minimap problems (#5405)
This fixes issue #5404
Diffstat (limited to 'clientmods')
-rw-r--r--clientmods/preview/init.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/clientmods/preview/init.lua b/clientmods/preview/init.lua
index 3f85d576d..25a61da51 100644
--- a/clientmods/preview/init.lua
+++ b/clientmods/preview/init.lua
@@ -49,8 +49,8 @@ core.register_chatcommand("test_node", {
local function preview_minimap()
local minimap = core.ui.minimap
- minimap:show()
minimap:set_mode(4)
+ minimap:show()
minimap:set_pos({x=5, y=50, z=5})
minimap:toggle_shape()
@@ -61,9 +61,13 @@ end
core.after(2, function()
print("[PREVIEW] loaded " .. modname .. " mod")
- preview_minimap()
modstorage:set_string("current_mod", modname)
print(modstorage:get_string("current_mod"))
+ preview_minimap()
+end)
+
+core.after(5, function()
+ core.ui.minimap:show()
print("[PREVIEW] Day count: " .. core.get_day_count() ..
" time of day " .. core.get_timeofday())