Uberi / Minetest-WorldEdit

The ultimate in-game world editing tool for Minetest! Tons of functionality to help with building, fixing, and more.
https://forum.minetest.net/viewtopic.php?f=11&t=572
GNU Affero General Public License v3.0
162 stars 81 forks source link

Pyramid keeps crashing #93

Closed scr267 closed 9 years ago

scr267 commented 9 years ago

I get an error when attempting to make a pyramid in WorldEdit. I think line 160 of primitives.lua might need to be modified from:

local data = mh.get_empty_data()

to:

local data = mh.get_empty_data(area)

The error is:

2015-11-01 14:30:37: ERROR[main]: ServerError: Lua: Runtime error from mod '' in callback ScriptApiPlayer::on_playerReceiveFields(): ...netest-0.4.13\bin\..\mods\WorldEdit\worldedit/common.lua:65: attempt to index local 'area' (a nil value)
2015-11-01 14:30:37: ERROR[main]: stack traceback:
2015-11-01 14:30:37: ERROR[main]:   ...netest-0.4.13\bin\..\mods\WorldEdit\worldedit/common.lua:65: in function 'get_empty_data'
2015-11-01 14:30:37: ERROR[main]:   ...st-0.4.13\bin\..\mods\WorldEdit\worldedit/primitives.lua:160: in function 'pyramid'