summaryrefslogtreecommitdiff
path: root/clientmods
diff options
context:
space:
mode:
authorbigfoot547 <bigfoot547@users.noreply.github.com>2017-04-14 02:04:41 -0500
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-04-14 09:04:41 +0200
commite80a83d1cb9d01273ddca1c075c25cd01c291ca7 (patch)
tree277bc42c60466ca4e35fd29072c3eae5e6511391 /clientmods
parent6f641df8a52ccb84452a289416527e3d1a36621a (diff)
downloadminetest-e80a83d1cb9d01273ddca1c075c25cd01c291ca7.tar.gz
minetest-e80a83d1cb9d01273ddca1c075c25cd01c291ca7.tar.bz2
minetest-e80a83d1cb9d01273ddca1c075c25cd01c291ca7.zip
[CSM] Add function to set minimap shape (#5569)
* [CSM] Add function to set minimap shape Also deprecates `toggle_shape`. * Oh fish, I messed that one up! * Fix Style * Sorry, I missed something I still had the `luamethod` call in there! * Add getters * Remove extra line * Remove useless variable Please review again @nerzhul . Thanks! * Satisfy nerzhul
Diffstat (limited to 'clientmods')
-rw-r--r--clientmods/preview/init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/clientmods/preview/init.lua b/clientmods/preview/init.lua
index df07f8c3f..4b31fa323 100644
--- a/clientmods/preview/init.lua
+++ b/clientmods/preview/init.lua
@@ -62,7 +62,7 @@ local function preview_minimap()
minimap:set_mode(4)
minimap:show()
minimap:set_pos({x=5, y=50, z=5})
- minimap:toggle_shape()
+ minimap:set_shape(math.random(0, 1))
print("[PREVIEW] Minimap: mode => " .. dump(minimap:get_mode()) ..
" position => " .. dump(minimap:get_pos()) ..