]> git.lizzy.rs Git - xdecor.git/commitdiff
allow farming bowl to be used on the cauldron to get soup
authory <y@y>
Sat, 13 Jul 2019 22:43:04 +0000 (23:43 +0100)
committerJean-Patrick Guerrero <kilbith@users.noreply.github.com>
Tue, 16 Jul 2019 09:46:18 +0000 (11:46 +0200)
src/cooking.lua

index 8cc2d386ed73840a150f42bc0dcd9dbe1e654127..591b6c49cf7b781a403bffb50f5e32c1cd9bc75f 100644 (file)
@@ -119,8 +119,9 @@ end
 function cauldron.take_soup(pos, node, clicker, itemstack)
        local inv = clicker:get_inventory()
        local wield_item = clicker:get_wielded_item()
+       local item_name = wield_item:get_name()
 
-       if wield_item:get_name() == "xdecor:bowl" then
+       if item_name == "xdecor:bowl" or item_name == "farming:bowl" then
                if wield_item:get_count() > 1 then
                        if inv:room_for_item("main", "xdecor:bowl_soup 1") then
                                itemstack:take_item()