mirror of
git://repo.or.cz/minetest_schemedit.git
synced 2025-01-09 17:40:32 +01:00
Fix wrong data type for waypoint call
This commit is contained in:
parent
476f62c286
commit
9cb700327a
4
init.lua
4
init.lua
@ -789,7 +789,7 @@ function schemedit.display_node_prob(player, pos, prob, force_place)
|
|||||||
local wpstring
|
local wpstring
|
||||||
if prob and force_place == true then
|
if prob and force_place == true then
|
||||||
wpstring = string.format("%d [F]", prob)
|
wpstring = string.format("%d [F]", prob)
|
||||||
elseif prob then
|
elseif prob and type(tonumber(prob)) == "number" then
|
||||||
wpstring = prob
|
wpstring = prob
|
||||||
elseif force_place == true then
|
elseif force_place == true then
|
||||||
wpstring = "[F]"
|
wpstring = "[F]"
|
||||||
@ -834,7 +834,7 @@ function schemedit.display_node_probs_region(player, pos1, pos2)
|
|||||||
|
|
||||||
local prob, force_place
|
local prob, force_place
|
||||||
local meta = minetest.get_meta(checkpos)
|
local meta = minetest.get_meta(checkpos)
|
||||||
prob = tonumber(meta:get_string("schemedit_prob"))
|
prob = meta:get_string("schemedit_prob")
|
||||||
force_place = meta:get_string("schemedit_force_place") == "true"
|
force_place = meta:get_string("schemedit_force_place") == "true"
|
||||||
local hud_id = schemedit.display_node_prob(player, checkpos, prob, force_place)
|
local hud_id = schemedit.display_node_prob(player, checkpos, prob, force_place)
|
||||||
if hud_id then
|
if hud_id then
|
||||||
|
Loading…
Reference in New Issue
Block a user