Skip to content

Commit affe55b

Browse files
committed
Add compatibility for 0.4.10
1 parent 71e94d6 commit affe55b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

init.lua

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ minetest.register_on_mapgen_init(function(mgparams)
3434
end
3535
end)
3636

37+
function vector.floor(v)
38+
return {
39+
x = math.floor(v.x),
40+
y = math.floor(v.y),
41+
z = math.floor(v.z)
42+
}
43+
end
44+
3745
minetest.register_chatcommand("regenerate", {
3846
description = "Regenerates a (<size>*8)^3 chunk around you",
3947
params = "<size>",

0 commit comments

Comments
 (0)