From a37be6ba54b6089e901234ae3e4c4ef3d67e634e Mon Sep 17 00:00:00 2001 From: Axaxax88 <74550391+Axaxax88@users.noreply.github.com> Date: Tue, 22 Dec 2020 16:34:41 +0100 Subject: [PATCH] Fix bug with blueberry bushes. Make permafrost dig like gravel (#723) I repaired bug with blueberry bush, which dropped unknown item (blueberries). I also made all types of permafrost "crumbly = 2", so they will be diggable by hand (same as gravel). --- mods/mtg/default/nodes.lua | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/mods/mtg/default/nodes.lua b/mods/mtg/default/nodes.lua index 536abe6..3af11ad 100644 --- a/mods/mtg/default/nodes.lua +++ b/mods/mtg/default/nodes.lua @@ -500,7 +500,7 @@ minetest.register_node("default:dirt_with_coniferous_litter", { minetest.register_node("default:permafrost", { description = "Permafrost", tiles = {"default_permafrost.png"}, - groups = {cracky = 3}, + groups = {cracky = 3, crumbly = 2}, sounds = default.node_sound_dirt_defaults(), }) @@ -508,7 +508,7 @@ minetest.register_node("default:permafrost_with_stones", { description = "Permafrost with Stones", tiles = {"default_permafrost.png^default_stones.png", "default_permafrost.png"}, - groups = {cracky = 3}, + groups = {cracky = 3, crumbly = 2}, drop = "default:permafrost", sounds = default.node_sound_gravel_defaults(), }) @@ -518,7 +518,7 @@ minetest.register_node("default:permafrost_with_moss", { tiles = {"default_moss.png", "default_permafrost.png", {name = "default_permafrost.png^default_moss_side.png", tileable_vertical = false}}, - groups = {cracky = 3}, + groups = {cracky = 3, crumbly = 2}, drop = "default:permafrost", sounds = default.node_sound_dirt_defaults({ footstep = {name = "default_grass_footstep", gain = 0.25}, @@ -1284,14 +1284,9 @@ minetest.register_node("default:blueberry_bush_leaves_with_berries", { waving = 1, tiles = {"default_blueberry_bush_leaves.png^default_blueberry_overlay.png"}, paramtype = "light", - groups = {snappy = 3, flammable = 2, leaves = 1, dig_immediate = 3}, - drop = "default:blueberries", + groups = {snappy = 3, flammable = 2, leaves = 1}, + drop = "default:blueberry_bush_leaves", sounds = default.node_sound_leaves_defaults(), - node_dig_prediction = "default:blueberry_bush_leaves", - - after_dig_node = function(pos, oldnode, oldmetadata, digger) - minetest.set_node(pos, {name = "default:blueberry_bush_leaves"}) - end, }) minetest.register_node("default:blueberry_bush_leaves", {