forked from VoxeLibre/VoxeLibre
Update mcl_shields/init.lua
This commit is contained in:
parent
e972265762
commit
324e734fcb
|
@ -247,7 +247,7 @@ local function handle_blocking(player)
|
||||||
player_shield.blocking = 2
|
player_shield.blocking = 2
|
||||||
end
|
end
|
||||||
elseif shield_in_offhand then
|
elseif shield_in_offhand then
|
||||||
local offhand_can_block = (wielded_item(player) == "" or not mcl_util.get_pointed_thing(player))
|
local offhand_can_block = (wielded_item(player) == "" or not mcl_util.get_pointed_thing(player, true))
|
||||||
if offhand_can_block then
|
if offhand_can_block then
|
||||||
if not_blocking then
|
if not_blocking then
|
||||||
minetest.after(0.25, function()
|
minetest.after(0.25, function()
|
||||||
|
|
Loading…
Reference in New Issue