Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
local c_nil = minetest.get_content_id("ignore")
if minetest.get_node(pos)==c_nil then
--true
end
This looks valid. These are good ideas. get_node_or_nil is undocumented in wiki.
So am I right in assuming only asynchronous sqlite transactions are available to lua? (vm:get_data() and vm:write_to_map()) Using async means the edge-finding technique requires a full rewrite of voxeldata every time a client accesses a chunk. Synchronous writeback from client this way could strain the server so I'd best write genmud on server-side in C++ as a patch I think.
These are assumptions, does it sound right?
Genmud generates the full map and minetest uses event-based chunk generation. Using perlin prediction is possible in lua instead of server code. The logic switches would be more tedious and slow in lua, though.