Fix accessing undeclared global
This commit is contained in:
parent
9e54a40c03
commit
3687a040a5
2
init.lua
2
init.lua
@ -419,7 +419,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||
local persistence = tonumber(fields.persistence)
|
||||
local lacunarity = tonumber(fields.lacunarity)
|
||||
local dimensions = 2 -- TODO
|
||||
if not (offset and scale and spread_x and spread_y and spread_z and octaves and persistence and dimensions) then
|
||||
if not (offset and scale and spread and octaves and persistence and dimensions) then
|
||||
set_perlin_noise({
|
||||
offset = offset,
|
||||
scale = scale,
|
||||
|
Loading…
x
Reference in New Issue
Block a user