forked from mtcontrib/3d_armor
Added the possibility to hide wielded items in-game (#14)
* Added the possibility to hide wielded items in-game * Update wieldview/README.txt Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
@ -54,6 +54,9 @@ wieldview.update_wielded_item = function(self, player)
|
||||
return
|
||||
end
|
||||
if self.wielded_item[name] then
|
||||
if player:get_meta():get_int("show_wielded_item") == 2 then
|
||||
item = ""
|
||||
end
|
||||
if self.wielded_item[name] == item then
|
||||
return
|
||||
end
|
||||
|
Reference in New Issue
Block a user