mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-08-19 05:24:11 +02:00
Fix indentation
This commit is contained in:
parent
f94e7fc52f
commit
ee24b24c68
@ -112,18 +112,18 @@ end
|
|||||||
|
|
||||||
function mcl_shields.is_blocking(obj)
|
function mcl_shields.is_blocking(obj)
|
||||||
if not obj:is_player() then return end
|
if not obj:is_player() then return end
|
||||||
if mcl_shields.players[obj] then
|
if mcl_shields.players[obj] then
|
||||||
local blocking = mcl_shields.players[obj].blocking
|
local blocking = mcl_shields.players[obj].blocking
|
||||||
if blocking <= 0 then
|
if blocking <= 0 then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local shieldstack = obj:get_wielded_item()
|
local shieldstack = obj:get_wielded_item()
|
||||||
if blocking == 1 then
|
if blocking == 1 then
|
||||||
shieldstack = obj:get_inventory():get_stack("offhand", 1)
|
shieldstack = obj:get_inventory():get_stack("offhand", 1)
|
||||||
|
end
|
||||||
|
return blocking, shieldstack
|
||||||
end
|
end
|
||||||
return blocking, shieldstack
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
mcl_damage.register_modifier(function(obj, damage, reason)
|
mcl_damage.register_modifier(function(obj, damage, reason)
|
||||||
|
Loading…
Reference in New Issue
Block a user