From 22dee39390bf11ab6d2bf646a33c7bd8dd5f6c52 Mon Sep 17 00:00:00 2001 From: Michal Cieslakiewicz Date: Fri, 25 Sep 2020 09:32:38 +0200 Subject: [PATCH] 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 --- biogasmachines/compactor.lua | 3 --- biogasmachines/freezer.lua | 3 --- biogasmachines/gasfurnace.lua | 3 --- biogasmachines/gasifier.lua | 3 --- biogasmachines/jetfurnace.lua | 3 --- 5 files changed, 15 deletions(-) diff --git a/biogasmachines/compactor.lua b/biogasmachines/compactor.lua index c1734bd..21c593a 100644 --- a/biogasmachines/compactor.lua +++ b/biogasmachines/compactor.lua @@ -624,7 +624,6 @@ minetest.register_node("biogasmachines:compactor", { groups = { choppy = 2, cracky = 2, crumbly = 2 }, is_ground_content = false, sounds = default.node_sound_metal_defaults(), - drop = "", can_dig = can_dig, on_dig = function(pos, node, player) @@ -681,8 +680,6 @@ minetest.register_node("biogasmachines:compactor_active", { groups = { crumbly = 0, not_in_creative_inventory = 1 }, is_ground_content = false, sounds = default.node_sound_metal_defaults(), - drop = "", - can_dig = can_dig, on_rotate = screwdriver.disallow, on_timer = on_timer, on_receive_fields = on_receive_fields, diff --git a/biogasmachines/freezer.lua b/biogasmachines/freezer.lua index 1322611..69b3fa4 100644 --- a/biogasmachines/freezer.lua +++ b/biogasmachines/freezer.lua @@ -528,7 +528,6 @@ minetest.register_node("biogasmachines:freezer", { left = 1, right = 1 }, - drop = "", can_dig = can_dig, on_dig = function(pos, node, player) @@ -596,8 +595,6 @@ minetest.register_node("biogasmachines:freezer_active", { left = 1, right = 1 }, - drop = "", - can_dig = can_dig, on_rotate = screwdriver.disallow, on_timer = on_timer, on_receive_fields = on_receive_fields, diff --git a/biogasmachines/gasfurnace.lua b/biogasmachines/gasfurnace.lua index a984d10..67da49f 100644 --- a/biogasmachines/gasfurnace.lua +++ b/biogasmachines/gasfurnace.lua @@ -511,7 +511,6 @@ minetest.register_node("biogasmachines:gasfurnace", { groups = { choppy = 2, cracky = 2, crumbly = 2 }, is_ground_content = false, sounds = default.node_sound_metal_defaults(), - drop = "", can_dig = can_dig, on_dig = function(pos, node, player) @@ -557,8 +556,6 @@ minetest.register_node("biogasmachines:gasfurnace_active", { is_ground_content = false, light_source = 6, sounds = default.node_sound_metal_defaults(), - drop = "", - can_dig = can_dig, on_rotate = screwdriver.disallow, on_timer = on_timer, on_receive_fields = on_receive_fields, diff --git a/biogasmachines/gasifier.lua b/biogasmachines/gasifier.lua index 4b1a8f6..954dabd 100644 --- a/biogasmachines/gasifier.lua +++ b/biogasmachines/gasifier.lua @@ -540,7 +540,6 @@ minetest.register_node("biogasmachines:gasifier", { groups = { choppy = 2, cracky = 2, crumbly = 2 }, is_ground_content = false, sounds = default.node_sound_metal_defaults(), - drop = "", can_dig = can_dig, on_dig = function(pos, node, player) @@ -598,8 +597,6 @@ minetest.register_node("biogasmachines:gasifier_active", { is_ground_content = false, light_source = 5, sounds = default.node_sound_metal_defaults(), - drop = "", - can_dig = can_dig, on_rotate = screwdriver.disallow, on_timer = on_timer, on_receive_fields = on_receive_fields, diff --git a/biogasmachines/jetfurnace.lua b/biogasmachines/jetfurnace.lua index da4bc0b..c8c6c1f 100644 --- a/biogasmachines/jetfurnace.lua +++ b/biogasmachines/jetfurnace.lua @@ -501,7 +501,6 @@ minetest.register_node("biogasmachines:jetfurnace", { groups = { choppy = 2, cracky = 2, crumbly = 2 }, is_ground_content = false, sounds = default.node_sound_metal_defaults(), - drop = "", can_dig = can_dig, on_dig = function(pos, node, player) @@ -548,8 +547,6 @@ minetest.register_node("biogasmachines:jetfurnace_active", { light_source = 6, sounds = default.node_sound_metal_defaults(), - drop = "", - can_dig = can_dig, on_rotate = screwdriver.disallow, on_timer = on_timer, on_receive_fields = on_receive_fields,