diff options
author | Kyle <kyle.kylina@gmail.com> | 2012-09-04 21:22:29 -0700 |
---|---|---|
committer | Kyle <kyle.kylina@gmail.com> | 2012-09-04 21:22:29 -0700 |
commit | 9fbc4b4587b1aa6dca926ddf6105f022f01055b1 (patch) | |
tree | 6acf3a612e9da6588592d64e8a4132fed8b6358a | |
parent | 17fc6ac1f04e8f75674e6e895f78e477e38b0e5c (diff) | |
download | mesecons-9fbc4b4587b1aa6dca926ddf6105f022f01055b1.tar mesecons-9fbc4b4587b1aa6dca926ddf6105f022f01055b1.tar.gz mesecons-9fbc4b4587b1aa6dca926ddf6105f022f01055b1.tar.bz2 mesecons-9fbc4b4587b1aa6dca926ddf6105f022f01055b1.tar.xz mesecons-9fbc4b4587b1aa6dca926ddf6105f022f01055b1.zip |
went back to large nodeboxes which agree with inventory image
-rw-r--r-- | mesecons_gates/init.lua | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/mesecons_gates/init.lua b/mesecons_gates/init.lua index b7eae45..aa9da75 100644 --- a/mesecons_gates/init.lua +++ b/mesecons_gates/init.lua @@ -33,25 +33,8 @@ gates = {"diode", "not", "nand", "and", "xor"} for g in ipairs(gates) do gate = gates[g] if g < 3 then get_rules = get_gate_rules_one - node_box = { - type = "fixed", - fixed = { - {-6/16, -8/16, -6/16, 6/16, -7/16, 6/16 }, - {6/16, -8/16, -2/16, 8/16, -7/16, 2/16 }, - {-8/16, -8/16, -2/16, -6/16, -7/16, 2/16 }, - }, - } else get_rules = get_gate_rules_two - node_box = { - type = "fixed", - fixed = { - {-6/16, -8/16, -6/16, 6/16, -7/16, 6/16 }, - {6/16, -8/16, -2/16, 8/16, -7/16, 2/16 }, - {-2/16, -8/16, 6/16, 2/16, -7/16, 8/16 }, - {-2/16, -8/16, -8/16, 2/16, -7/16, -6/16 }, - }, - } end for on=0,1 do nodename = "mesecons_gates:"..gate @@ -75,6 +58,13 @@ for g in ipairs(gates) do gate = gates[g] "jeija_gate_"..onoff..".png^".. "jeija_gate_"..gate..".png" + node_box = { + type = "fixed", + fixed = { + {-8/16, -8/16, -8/16, 8/16, -7/16, 8/16 }, + }, + } + minetest.register_node(nodename, { description = description, paramtype = "light", |