Only apply the not_in_creative_inventory group to the _on version.

master
Pedro Gimeno 2017-12-22 00:04:47 +01:00
parent f5955ac175
commit 87d231bae8
1 changed files with 2 additions and 1 deletions

View File

@ -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