mirror of
https://github.com/edubart/otclient.git
synced 2025-11-30 15:26:49 +01:00
Fix container bug, miniwindow pos, creature skulls outsite map bound
This commit is contained in:
@@ -97,7 +97,7 @@ function UIMiniWindow:setup()
|
||||
elseif selfSettings.position then
|
||||
self:setParent(parent)
|
||||
self:setPosition(topoint(selfSettings.position))
|
||||
self:bindRectToParent()
|
||||
addEvent(function() self:bindRectToParent() end)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -351,11 +351,10 @@ function processMouseAction(menuPosition, mouseButton, autoWalkPos, lookThing, u
|
||||
if useThing:isContainer() then
|
||||
if useThing:getParentContainer() then
|
||||
g_game.open(useThing, useThing:getParentContainer())
|
||||
return true
|
||||
else
|
||||
g_game.open(useThing)
|
||||
return true
|
||||
end
|
||||
return true
|
||||
elseif useThing:isMultiUse() then
|
||||
startUseWith(useThing)
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user