Fix accessing undeclared global

This commit is contained in:
Wuzzy 2022-04-10 02:12:34 +02:00
parent 9e54a40c03
commit 3687a040a5

View File

@ -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,