mirror of
https://github.com/minetest-mods/3d_armor.git
synced 2024-11-26 06:13:45 +01:00
Run update callbacks when player visuals change, closes #113
This commit is contained in:
parent
aa9984b789
commit
f6502ba32b
@ -173,6 +173,7 @@ armor.update_player_visuals = function(self, player)
|
||||
textures[1] = armor.default_skin
|
||||
default.player_set_textures(player, textures)
|
||||
end
|
||||
self:run_callbacks("on_update", player)
|
||||
end
|
||||
|
||||
armor.set_player_armor = function(self, player)
|
||||
@ -295,7 +296,6 @@ armor.set_player_armor = function(self, player)
|
||||
self.def[name].state = state
|
||||
self.def[name].count = count
|
||||
self:update_player_visuals(player)
|
||||
self:run_callbacks("on_update", player)
|
||||
end
|
||||
|
||||
armor.punch = function(self, player, hitter, time_from_last_punch, tool_capabilities)
|
||||
|
Loading…
Reference in New Issue
Block a user