mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 04:21:07 +01:00
use vector.new instead of normal tables
This commit is contained in:
parent
d9f2db5950
commit
c6312e7bdd
1 changed files with 8 additions and 2 deletions
|
@ -37,10 +37,16 @@ local on_rotate
|
|||
if mod_screwdriver then
|
||||
on_rotate = screwdriver.rotate_3way
|
||||
end
|
||||
local alldirs = {{x=0,y=0,z=1}, {x=1,y=0,z=0}, {x=0,y=0,z=-1}, {x=-1,y=0,z=0}, {x=0,y=-1,z=0}, {x=0,y=1,z=0}}
|
||||
local alldirs = {
|
||||
vector.new(1,0,0),
|
||||
vector.new(0,1,0),
|
||||
vector.new(0,0,1),
|
||||
vector.new(-1,0,0),
|
||||
vector.new(0,-1,0),
|
||||
vector.new(0,0,-1)
|
||||
}
|
||||
|
||||
--Blocks
|
||||
|
||||
minetest.register_node("mcl_blackstone:blackstone", {
|
||||
description = S("Blackstone"),
|
||||
tiles = {"mcl_blackstone.png"},
|
||||
|
|
Loading…
Reference in a new issue