Make pistons and movestones move objects (push only yet)

This commit is contained in:
Jeija
2013-04-02 11:56:37 +02:00
parent 2cc38909a1
commit 57e1547515
4 changed files with 126 additions and 41 deletions

View File

@ -22,3 +22,17 @@ end
function mesecon:cmpPos(p1, p2)
return (p1.x == p2.x and p1.y == p2.y and p1.z == p2.z)
end
function mesecon:tablecopy(table) -- deep table copy
local newtable = {}
for idx, item in pairs(table) do
if type(item) == "table" then
newtable[idx] = mesecon:tablecopy(item)
else
newtable[idx] = item
end
end
return newtable
end