From 8563a674789a374c7ef01d1e32f40ff84bf824da Mon Sep 17 00:00:00 2001 From: HybridDog Date: Wed, 5 Mar 2014 21:02:25 +0100 Subject: [PATCH] update --- init.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/init.lua b/init.lua index e5100ac..6da26c0 100644 --- a/init.lua +++ b/init.lua @@ -284,3 +284,9 @@ function vector.ring(r) print(string.format("[vector_extras] table created after ca. %.2fs", os.clock() - t1)) return tab2 end + +function vector.chunkcorner(pos) + return {x=pos.x-pos.x%16, y=pos.y-pos.y%16, z=pos.z-pos.z%16} +end + +vector.zero = {x=0, y=0, z=0}