From 77198100f3bfa57de2d616bee3d2dfd3a48c02a9 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Mon, 12 Mar 2018 16:45:15 +0000 Subject: added food groups to make items more compatible with other mods --- sugar.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sugar.lua') diff --git a/sugar.lua b/sugar.lua index 012a987..11b6461 100644 --- a/sugar.lua +++ b/sugar.lua @@ -6,6 +6,7 @@ local S = farming.intllib minetest.register_craftitem("farming:sugar", { description = S("Sugar"), inventory_image = "farming_sugar.png", + groups = {food_sugar = 1, flammable = 3}, }) minetest.register_craft({ @@ -25,7 +26,8 @@ minetest.register_node("farming:salt", { drawtype = "plantlike", paramtype = "light", tiles = {"farming_salt.png"}, - groups = {vessel = 1, salt = 1, dig_immediate = 3, attached_node = 1}, + groups = {food_salt = 1, salt = 1, vessel = 1, dig_immediate = 3, + attached_node = 1}, sounds = default.node_sound_glass_defaults(), selection_box = { type = "fixed", -- cgit v1.2.3