mirror of
git://repo.or.cz/minetest_schemedit.git
synced 2025-01-09 17:40:32 +01:00
Fix a waypoint-related crash
This commit is contained in:
parent
fee142eab2
commit
02acad209b
2
init.lua
2
init.lua
@ -788,7 +788,7 @@ end
|
|||||||
function schemedit.display_node_prob(player, pos, prob, force_place)
|
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("%s [F]", prob)
|
||||||
elseif prob and type(tonumber(prob)) == "number" then
|
elseif prob and type(tonumber(prob)) == "number" then
|
||||||
wpstring = prob
|
wpstring = prob
|
||||||
elseif force_place == true then
|
elseif force_place == true then
|
||||||
|
Loading…
Reference in New Issue
Block a user