mirror of
https://github.com/minetest/minetest_game.git
synced 2025-06-28 04:40:22 +02:00
Add missing not_in_creative_inventory group where appropriate (#2764)
This commit is contained in:
@ -434,7 +434,7 @@ minetest.register_node("tnt:boom", {
|
||||
light_source = default.LIGHT_MAX,
|
||||
walkable = false,
|
||||
drop = "",
|
||||
groups = {dig_immediate = 3},
|
||||
groups = {dig_immediate = 3, not_in_creative_inventory = 1},
|
||||
-- unaffected by explosions
|
||||
on_blast = function() end,
|
||||
})
|
||||
@ -531,7 +531,8 @@ minetest.register_node("tnt:gunpowder_burning", {
|
||||
groups = {
|
||||
dig_immediate = 2,
|
||||
attached_node = 1,
|
||||
connect_to_raillike = minetest.raillike_group("gunpowder")
|
||||
connect_to_raillike = minetest.raillike_group("gunpowder"),
|
||||
not_in_creative_inventory = 1
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
on_timer = function(pos, elapsed)
|
||||
@ -678,7 +679,7 @@ function tnt.register_tnt(def)
|
||||
light_source = 5,
|
||||
drop = "",
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
groups = {falling_node = 1},
|
||||
groups = {falling_node = 1, not_in_creative_inventory = 1},
|
||||
on_timer = function(pos, elapsed)
|
||||
tnt.boom(pos, def)
|
||||
end,
|
||||
|
Reference in New Issue
Block a user