From bc5d13c1b4e3d77191741343f69742848d19fa03 Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Thu, 15 Aug 2024 16:47:38 +0200 Subject: [PATCH] Added additional delay to objects unlocking after texture change --- src/playermat/Playermat.ttslua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/playermat/Playermat.ttslua b/src/playermat/Playermat.ttslua index c14e4479..04eda2ed 100644 --- a/src/playermat/Playermat.ttslua +++ b/src/playermat/Playermat.ttslua @@ -1341,9 +1341,11 @@ function updateTexture(overrideName) -- unlock objects when mat is reloaded Wait.condition(function() - for _, obj in ipairs(objectsToUnlock) do - obj.setLock(false) - end + Wait.frames(function() + for _, obj in ipairs(objectsToUnlock) do + obj.setLock(false) + end + end, 5) end, function() return reloadedMat.loading_custom == false end) end end