diff options
author | bigfoot547 <bigfoot547@users.noreply.github.com> | 2017-04-14 02:04:41 -0500 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-04-14 09:04:41 +0200 |
commit | e80a83d1cb9d01273ddca1c075c25cd01c291ca7 (patch) | |
tree | 277bc42c60466ca4e35fd29072c3eae5e6511391 /clientmods/preview | |
parent | 6f641df8a52ccb84452a289416527e3d1a36621a (diff) | |
download | minetest-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/preview')
-rw-r--r-- | clientmods/preview/init.lua | 2 |
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()) .. |