Skip to content
Snippets Groups Projects
Commit 21317be4 authored by PilzAdam's avatar PilzAdam
Browse files

Fix a bug in falling code where entities get stuck

parent 41c00e87
No related branches found
No related tags found
No related merge requests found
......@@ -111,6 +111,11 @@ function nodeupdate_single(p)
end
function nodeupdate(p)
-- Round p to prevent falling entities to get stuck
p.x = math.floor(p.x+0.5)
p.y = math.floor(p.y+0.5)
p.z = math.floor(p.z+0.5)
for x = -1,1 do
for y = -1,1 do
for z = -1,1 do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment