forked from MineClone5/MineClone5
#198 Fix a crash, step 18
This commit is contained in:
parent
b3059aecba
commit
194ac71c89
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue