forked from VoxeLibre/VoxeLibre
Check for player (See #198 MCL5)
This commit is contained in:
parent
75e9899b89
commit
c552976e5a
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue