diff options
author | Jeija <jeija@mesecons.net> | 2014-11-23 16:13:28 +0100 |
---|---|---|
committer | Jeija <jeija@mesecons.net> | 2014-11-23 16:13:28 +0100 |
commit | e74241f4aac7b2bda34e496da3dc2cc5f792d569 (patch) | |
tree | 50a949e0a3eb34358164f53892e005fc50fbc00c | |
parent | f388dc475a1770151bd19208bfae7e204d5cde71 (diff) | |
download | mesecons-e74241f4aac7b2bda34e496da3dc2cc5f792d569.tar mesecons-e74241f4aac7b2bda34e496da3dc2cc5f792d569.tar.gz mesecons-e74241f4aac7b2bda34e496da3dc2cc5f792d569.tar.bz2 mesecons-e74241f4aac7b2bda34e496da3dc2cc5f792d569.tar.xz mesecons-e74241f4aac7b2bda34e496da3dc2cc5f792d569.zip |
Fix onstate switch appearing the the creative inventory
-rw-r--r-- | mesecons_switch/init.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mesecons_switch/init.lua b/mesecons_switch/init.lua index 074dc62..2b3c3ee 100644 --- a/mesecons_switch/init.lua +++ b/mesecons_switch/init.lua @@ -2,7 +2,6 @@ mesecon.register_node("mesecons_switch:mesecon_switch", { paramtype2="facedir", - groups = {dig_immediate=2}, description="Switch", sounds = default.node_sound_stone_defaults(), on_punch = function (pos, node) @@ -14,11 +13,13 @@ mesecon.register_node("mesecons_switch:mesecon_switch", { minetest.sound_play("mesecons_switch", {pos=pos}) end },{ + groups = {dig_immediate=2}, tiles = { "jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png", "jeija_mesecon_switch_off.png"}, mesecons = {receptor = { state = mesecon.state.off }} },{ + groups = {dig_immediate=2, not_in_creative_inventory=1}, tiles = { "jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png", "jeija_mesecon_switch_on.png"}, |