From 9fa95b2e2ccc359afbb66f7c858db588ab72613e Mon Sep 17 00:00:00 2001 From: stujones11 Date: Tue, 1 Aug 2017 18:48:06 +0100 Subject: [PATCH] Run update callbacks when player visuals change, closes #113 --- 3d_armor/api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3d_armor/api.lua b/3d_armor/api.lua index d522190..06582b4 100644 --- a/3d_armor/api.lua +++ b/3d_armor/api.lua @@ -167,6 +167,7 @@ armor.update_player_visuals = function(self, player) self.textures[name].wielditem, }) end + self:run_callbacks("on_update", player) end armor.set_player_armor = function(self, player) @@ -286,7 +287,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)