From 04d6a3636b175f65b3d35a18353d508bcc26e123 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Fri, 14 Sep 2018 16:35:17 +0100 Subject: [PATCH] when milking cow take bucket from stack in hand only --- cow.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cow.lua b/cow.lua index 8c9b0aa..1bc084f 100644 --- a/cow.lua +++ b/cow.lua @@ -84,7 +84,8 @@ mobs:register_mob("mobs_animal:cow", { local inv = clicker:get_inventory() - inv:remove_item("main", "bucket:bucket_empty") + tool:take_item() + clicker:set_wielded_item(tool) if inv:room_for_item("main", {name = "mobs:bucket_milk"}) then clicker:get_inventory():add_item("main", "mobs:bucket_milk")