Oops, forgot a return when removing mob

This commit is contained in:
TenPlus1 2015-10-04 17:24:16 +01:00
parent 50009304b8
commit 6568817c3d
2 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,4 @@
-- Mobs Api (27th September 2015)
-- Mobs Api (4th October 2015)
mobs = {}
mobs.mod = "redo"
@ -1085,6 +1085,7 @@ end
if mobs.remove and self.remove_ok and not self.tamed then
print ("REMOVED", self.remove_ok, self.name)
self.object:remove()
return
end
self.remove_ok = true
self.attack = nil

View File

@ -161,6 +161,7 @@ minetest.register_entity("mobs:sheep", {
self.timer = self.timer + dtime
if self.timer >= 1 then
self.timer = 0
self.object:setacceleration({
x = 0,
y = -10,