From c6312e7bdd47defe49e89c07ace7221f87055bb2 Mon Sep 17 00:00:00 2001 From: cora Date: Wed, 27 Apr 2022 00:31:14 +0200 Subject: [PATCH] use vector.new instead of normal tables --- mods/ITEMS/mcl_blackstone/init.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/mods/ITEMS/mcl_blackstone/init.lua b/mods/ITEMS/mcl_blackstone/init.lua index 95ddd0dc91..bd0e5bf0fa 100644 --- a/mods/ITEMS/mcl_blackstone/init.lua +++ b/mods/ITEMS/mcl_blackstone/init.lua @@ -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"},