biogasmachines: drop item when dug.

This fix brings machine back into player inventory when dug instead
of destroying it completely. Thanks to Joe7575 and TechWolf.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
This commit is contained in:
Michal Cieslakiewicz 2020-09-25 09:32:38 +02:00
parent bc8f65b29e
commit 22dee39390
5 changed files with 0 additions and 15 deletions

View File

@ -624,7 +624,6 @@ minetest.register_node("biogasmachines:compactor", {
groups = { choppy = 2, cracky = 2, crumbly = 2 }, groups = { choppy = 2, cracky = 2, crumbly = 2 },
is_ground_content = false, is_ground_content = false,
sounds = default.node_sound_metal_defaults(), sounds = default.node_sound_metal_defaults(),
drop = "",
can_dig = can_dig, can_dig = can_dig,
on_dig = function(pos, node, player) on_dig = function(pos, node, player)
@ -681,8 +680,6 @@ minetest.register_node("biogasmachines:compactor_active", {
groups = { crumbly = 0, not_in_creative_inventory = 1 }, groups = { crumbly = 0, not_in_creative_inventory = 1 },
is_ground_content = false, is_ground_content = false,
sounds = default.node_sound_metal_defaults(), sounds = default.node_sound_metal_defaults(),
drop = "",
can_dig = can_dig,
on_rotate = screwdriver.disallow, on_rotate = screwdriver.disallow,
on_timer = on_timer, on_timer = on_timer,
on_receive_fields = on_receive_fields, on_receive_fields = on_receive_fields,

View File

@ -528,7 +528,6 @@ minetest.register_node("biogasmachines:freezer", {
left = 1, left = 1,
right = 1 }, right = 1 },
drop = "",
can_dig = can_dig, can_dig = can_dig,
on_dig = function(pos, node, player) on_dig = function(pos, node, player)
@ -596,8 +595,6 @@ minetest.register_node("biogasmachines:freezer_active", {
left = 1, left = 1,
right = 1 }, right = 1 },
drop = "",
can_dig = can_dig,
on_rotate = screwdriver.disallow, on_rotate = screwdriver.disallow,
on_timer = on_timer, on_timer = on_timer,
on_receive_fields = on_receive_fields, on_receive_fields = on_receive_fields,

View File

@ -511,7 +511,6 @@ minetest.register_node("biogasmachines:gasfurnace", {
groups = { choppy = 2, cracky = 2, crumbly = 2 }, groups = { choppy = 2, cracky = 2, crumbly = 2 },
is_ground_content = false, is_ground_content = false,
sounds = default.node_sound_metal_defaults(), sounds = default.node_sound_metal_defaults(),
drop = "",
can_dig = can_dig, can_dig = can_dig,
on_dig = function(pos, node, player) on_dig = function(pos, node, player)
@ -557,8 +556,6 @@ minetest.register_node("biogasmachines:gasfurnace_active", {
is_ground_content = false, is_ground_content = false,
light_source = 6, light_source = 6,
sounds = default.node_sound_metal_defaults(), sounds = default.node_sound_metal_defaults(),
drop = "",
can_dig = can_dig,
on_rotate = screwdriver.disallow, on_rotate = screwdriver.disallow,
on_timer = on_timer, on_timer = on_timer,
on_receive_fields = on_receive_fields, on_receive_fields = on_receive_fields,

View File

@ -540,7 +540,6 @@ minetest.register_node("biogasmachines:gasifier", {
groups = { choppy = 2, cracky = 2, crumbly = 2 }, groups = { choppy = 2, cracky = 2, crumbly = 2 },
is_ground_content = false, is_ground_content = false,
sounds = default.node_sound_metal_defaults(), sounds = default.node_sound_metal_defaults(),
drop = "",
can_dig = can_dig, can_dig = can_dig,
on_dig = function(pos, node, player) on_dig = function(pos, node, player)
@ -598,8 +597,6 @@ minetest.register_node("biogasmachines:gasifier_active", {
is_ground_content = false, is_ground_content = false,
light_source = 5, light_source = 5,
sounds = default.node_sound_metal_defaults(), sounds = default.node_sound_metal_defaults(),
drop = "",
can_dig = can_dig,
on_rotate = screwdriver.disallow, on_rotate = screwdriver.disallow,
on_timer = on_timer, on_timer = on_timer,
on_receive_fields = on_receive_fields, on_receive_fields = on_receive_fields,

View File

@ -501,7 +501,6 @@ minetest.register_node("biogasmachines:jetfurnace", {
groups = { choppy = 2, cracky = 2, crumbly = 2 }, groups = { choppy = 2, cracky = 2, crumbly = 2 },
is_ground_content = false, is_ground_content = false,
sounds = default.node_sound_metal_defaults(), sounds = default.node_sound_metal_defaults(),
drop = "",
can_dig = can_dig, can_dig = can_dig,
on_dig = function(pos, node, player) on_dig = function(pos, node, player)
@ -548,8 +547,6 @@ minetest.register_node("biogasmachines:jetfurnace_active", {
light_source = 6, light_source = 6,
sounds = default.node_sound_metal_defaults(), sounds = default.node_sound_metal_defaults(),
drop = "",
can_dig = can_dig,
on_rotate = screwdriver.disallow, on_rotate = screwdriver.disallow,
on_timer = on_timer, on_timer = on_timer,
on_receive_fields = on_receive_fields, on_receive_fields = on_receive_fields,