1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-18 00:08:25 +01:00

Add class switches to inventory

This commit is contained in:
LeMagnesium 2015-08-17 02:00:35 +02:00
parent ddde0e4e54
commit fce6396f62

View File

@ -84,7 +84,7 @@ function pclasses.register_class_switch(cname, color)
sunlight_propagates = true, sunlight_propagates = true,
light_source = 10, light_source = 10,
sounds = default.node_sound_glass_defaults(), sounds = default.node_sound_glass_defaults(),
groups = {not_in_creative_inventory=1, cracky = 1}, groups = {cracky = 1},
after_place_node = function(pos) after_place_node = function(pos)
pos.y = pos.y + 1 pos.y = pos.y + 1
local obj = minetest.add_entity(pos, "pclasses:item") local obj = minetest.add_entity(pos, "pclasses:item")