You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -119,6 +120,11 @@ function PART:GetOrFindCachedPart(uid_or_name)
119
120
end
120
121
ifnotpart:IsValid() then
121
122
self.erroring_cached_parts[uid_or_name] =true
123
+
self.bad_uid_search=self.bad_uid_searchor0
124
+
self.bad_uid_search=self.bad_uid_search+1
125
+
ifself:GetPlayerOwner() ==LocalPlayer() then
126
+
pace.FlashNotification("performance warning! " ..tostring(self) .." keeps searching for parts not finding anything! " ..tostring(uid_or_name) .." may be unused!")
127
+
end
122
128
else
123
129
self.found_cached_parts[uid_or_name] =part
124
130
returnpart
@@ -1596,6 +1602,10 @@ local allowed = {
1596
1602
1597
1603
functionPART:SetExpression(str, slot)
1598
1604
str=string.Trim(str,"\n")
1605
+
self.bad_uid_search=nil
1606
+
self.found_cached_parts= {}
1607
+
self.erroring_cached_parts= {}
1608
+
1599
1609
ifself==pace.current_partand (pace.ActiveSpecialPanelandpace.ActiveSpecialPanel.luapad) andstr~="" then
1600
1610
--update luapad text if we update the expression from the properties
0 commit comments