1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-11-15 06:15:19 +01:00

Merge pull request #3 from minetest/master

Updating for actual version (now for real)
This commit is contained in:
Foghrye4
2016-04-21 22:48:18 +04:00
12 changed files with 239 additions and 246 deletions

View File

@@ -182,6 +182,10 @@ end
-- Down first as likely case, but always before self. The same with sides.
-- Up must come last, so that things above self will also fall all at once.
local nodeupdate_neighbors = {
{x = -1, y = -1, z = 0},
{x = 1, y = -1, z = 0},
{x = 0, y = -1, z = -1},
{x = 0, y = -1, z = 1},
{x = 0, y = -1, z = 0},
{x = -1, y = 0, z = 0},
{x = 1, y = 0, z = 0},
@@ -226,10 +230,10 @@ function nodeupdate(p)
n = n - 1
-- If there's nothing left on the stack, and no
-- more sides to walk to, we're done and can exit
if n == 0 and v == 7 then
if n == 0 and v == 11 then
return
end
until v < 7
until v < 11
-- The next round walk the next neighbor in list.
v = v + 1
else

View File

@@ -6,7 +6,7 @@
local jobs = {}
local time = 0.0
local last = 0.0
local last = core.get_us_time() / 1000000
core.register_globalstep(function(dtime)
local new = core.get_us_time() / 1000000