From d5740459307a680159a969d47ec8b2b079fe38c0 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Mon, 23 Jan 2017 20:25:00 +0000 Subject: [PATCH] added quick error check for self.drops --- api.lua | 3 ++- mount.lua | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/api.lua b/api.lua index 539bf7f..7d68d92 100644 --- a/api.lua +++ b/api.lua @@ -1,5 +1,5 @@ --- Mobs Api (21st January 2017) +-- Mobs Api (23rd January 2017) mobs = {} mobs.mod = "redo" @@ -422,6 +422,7 @@ function check_for_death(self) -- drop items when dead local obj local pos = self.object:getpos() + self.drops = self.drops or {} -- error check for n = 1, #self.drops do diff --git a/mount.lua b/mount.lua index b8d5d05..ca86b8e 100644 --- a/mount.lua +++ b/mount.lua @@ -148,6 +148,7 @@ end function mobs.detach(player, offset) force_detach(player) + default.player_set_animation(player, "stand" , 30) local pos = player:getpos()