Remove superfluous check for "mcl_potions" globabl
This commit is contained in:
parent
3e351a6e10
commit
a2db232d2f
@ -99,7 +99,6 @@ function mcl_meshhand.update_player(player)
|
|||||||
local creative = minetest.is_creative_enabled(player:get_player_name())
|
local creative = minetest.is_creative_enabled(player:get_player_name())
|
||||||
hand = ItemStack("mcl_meshhand:hand" .. (creative and "_crea" or "_surv"))
|
hand = ItemStack("mcl_meshhand:hand" .. (creative and "_crea" or "_surv"))
|
||||||
end
|
end
|
||||||
if not mcl_potions then player:get_inventory():set_stack("hand", 1, hand) end
|
|
||||||
player:get_inventory():set_stack("hand", 1, mcl_potions.hf_update_internal(hand, player))
|
player:get_inventory():set_stack("hand", 1, mcl_potions.hf_update_internal(hand, player))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
name = mcl_meshhand
|
name = mcl_meshhand
|
||||||
author = jordan4ibanez
|
author = jordan4ibanez
|
||||||
description = Applies the player skin texture to the hand.
|
description = Applies the player skin texture to the hand.
|
||||||
depends = mcl_tools, mcl_player, mcl_gamemode
|
depends = mcl_tools, mcl_player, mcl_gamemode, mcl_potions
|
||||||
optional_depends = mcl_skins, mcl_custom_skins
|
optional_depends = mcl_skins, mcl_custom_skins
|
||||||
|
Loading…
x
Reference in New Issue
Block a user