Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix onstate switch appearing the the creative inventory
  • Loading branch information
Jeija committed Nov 23, 2014
1 parent f388dc4 commit e74241f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mesecons_switch/init.lua
Expand Up @@ -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)
Expand All @@ -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"},
Expand Down

0 comments on commit e74241f

Please sign in to comment.