forked from Mineclonia/Mineclonia
Merge pull request 'master' (#7) from MineClone2/MineClone2:master into master
Reviewed-on: epCode/MineClone2#7
This commit is contained in:
commit
dbe009f376
|
@ -94,6 +94,9 @@ armor.def = {
|
||||||
}
|
}
|
||||||
|
|
||||||
armor.update_player_visuals = function(self, player)
|
armor.update_player_visuals = function(self, player)
|
||||||
|
if not player then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
local player_holding = player:get_wielded_item():get_name()
|
local player_holding = player:get_wielded_item():get_name()
|
||||||
if string.find(player_holding,"mcl_tools:") or player_holding == "mcl_mobitems:bone" or player_holding == "mcl_fishing:fishing_rod" then
|
if string.find(player_holding,"mcl_tools:") or player_holding == "mcl_mobitems:bone" or player_holding == "mcl_fishing:fishing_rod" then
|
||||||
|
@ -104,9 +107,6 @@ armor.update_player_visuals = function(self, player)
|
||||||
player:set_bone_position("Wield_Item", vector.new(-1.5,4.9,1.8), vector.new(135,0,90))
|
player:set_bone_position("Wield_Item", vector.new(-1.5,4.9,1.8), vector.new(135,0,90))
|
||||||
end
|
end
|
||||||
|
|
||||||
if not player then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
local name = player:get_player_name()
|
local name = player:get_player_name()
|
||||||
if self.textures[name] then
|
if self.textures[name] then
|
||||||
mcl_player.player_set_textures(player, {
|
mcl_player.player_set_textures(player, {
|
||||||
|
|
Loading…
Reference in New Issue