1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-07-03 16:40:25 +02:00

Begin the mobs update

This commit is contained in:
Ombridride
2015-03-25 17:25:54 +01:00
parent e2a49d6552
commit 8d45d416be
11 changed files with 47 additions and 35 deletions

View File

@ -63,7 +63,7 @@ mobs:register_mob("mobs:bunny", {
end
return
end
if clicker:is_player() and clicker:get_inventory() then
if clicker:is_player() and clicker:get_inventory() and clicker:get_inventory():room_for_item("main", "mobs:bunny") then
clicker:get_inventory():add_item("main", "mobs:bunny")
self.object:remove()
end