summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2018-09-14 16:35:17 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2018-09-14 16:35:17 +0100
commit04d6a3636b175f65b3d35a18353d508bcc26e123 (patch)
tree0377361dd464405c38ef432dffe18b293b73de10
parent9bc349438970f602d0a5ef9c6bc345444cf3e292 (diff)
when milking cow take bucket from stack in hand only
-rw-r--r--cow.lua3
1 files changed, 2 insertions, 1 deletions
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")