aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 162a4cb..165c158 100644
--- a/init.lua
+++ b/init.lua
@@ -147,7 +147,7 @@ local apply_shoes = function(name, itemstack, obj, shoes, speed, jump, reverse)
local mob = obj.ref
local ent = mob:get_luaentity()
- if ent.name and ent.name == "mob_horse:horse" then
+ if ent and ent.name and ent.name == "mob_horse:horse" then
if ent.shoed then
minetest.add_item(mob:getpos(), ent.shoed)