1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-07-05 01:20:22 +02:00

update mobs, fix tame and tidy code

This commit is contained in:
2015-09-22 00:01:24 +02:00
parent 428127f43d
commit a038ed0128
9 changed files with 14 additions and 14 deletions

View File

@ -59,7 +59,7 @@ mobs:register_mob("mobs:cow", {
replace_what = {"default:grass_3", "default:grass_4", "default:grass_5", "farming:wheat_8"},
replace_with = "air",
on_rightclick = function(self, clicker)
if not mobs:feed_tame(self, clicker, 8, true) then
if not mobs:feed_tame(self, clicker, 8, true, true) then
local tool = clicker:get_wielded_item()
-- milk cow with empty bucket