mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +02:00
fix walk up/down with parcels
This commit is contained in:
@@ -10,7 +10,7 @@ function UIProgressBar.create()
|
||||
end
|
||||
|
||||
function UIProgressBar:setPercent(percent)
|
||||
self.m_percent = percent
|
||||
self.m_percent = math.max(math.min(percent, 100), 0)
|
||||
self:updateBackground()
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user