Check for player (See #198 MCL5)

This commit is contained in:
NO11 2022-02-16 11:06:37 +00:00
parent 75e9899b89
commit c552976e5a
1 changed files with 1 additions and 0 deletions

View File

@ -107,6 +107,7 @@ for _, e in pairs(mcl_shields.enchantments) do
end
function mcl_shields.is_blocking(obj)
if not obj:is_player() then return end
local blocking = mcl_shields.players[obj].blocking
if blocking > 0 then
local shieldstack = obj:get_wielded_item()