Only apply the not_in_creative_inventory group to the _on version.
parent
f5955ac175
commit
87d231bae8
3
init.lua
3
init.lua
|
@ -82,7 +82,7 @@ for i = 0, 1 do
|
|||
local node_definition = {
|
||||
description = "Multi-coloured light";
|
||||
tiles = {"digiplay_multicolour_light" .. onoff .. ".png"};
|
||||
groups = {dig_immediate = 2, not_in_creative_inventory = 1};
|
||||
groups = {dig_immediate = 2};
|
||||
|
||||
drawtype = "color";
|
||||
paramtype2 = "color";
|
||||
|
@ -108,6 +108,7 @@ for i = 0, 1 do
|
|||
node_definition.tiles[1] = "digiplay_multicolour_light_on.png"
|
||||
node_definition.light_source = 12
|
||||
node_definition.drop = "digiplay:multicolour_light"
|
||||
node_definition.groups.not_in_creative_inventory = 1
|
||||
end
|
||||
minetest.register_node("digiplay:multicolour_light" .. onoff, node_definition)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue