#198 Fix a crash, step 18

This commit is contained in:
kay27 2022-02-14 06:36:15 +04:00
parent b3059aecba
commit 194ac71c89
1 changed files with 1 additions and 0 deletions

View File

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