We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1469424 commit 673ac55Copy full SHA for 673ac55
clientmods/preview/init.lua
@@ -78,6 +78,10 @@ core.register_chatcommand("test_node", {
78
79
local function preview_minimap()
80
local minimap = core.ui.minimap
81
+ if not minimap then
82
+ print("[PREVIEW] Minimap is disabled. Skipping.")
83
+ return
84
+ end
85
minimap:set_mode(4)
86
minimap:show()
87
minimap:set_pos({x=5, y=50, z=5})
@@ -96,7 +100,9 @@ core.after(2, function()
96
100
end)
97
101
98
102
core.after(5, function()
99
- core.ui.minimap:show()
103
+ if core.ui.minimap then
104
+ core.ui.minimap:show()
105
106
107
print("[PREVIEW] Day count: " .. core.get_day_count() ..
108
" time of day " .. core.get_timeofday())
0 commit comments