mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 20:14:54 +02:00
Must change UIMap class checks to UIGameMap.
This commit is contained in:
@@ -57,7 +57,7 @@ function UIItem:onHoverChange(hovered)
|
||||
|
||||
local draggingWidget = g_ui.getDraggingWidget()
|
||||
if draggingWidget and self ~= draggingWidget then
|
||||
local gotMap = draggingWidget:getClassName() == 'UIMap'
|
||||
local gotMap = draggingWidget:getClassName() == 'UIGameMap'
|
||||
local gotItem = draggingWidget:getClassName() == 'UIItem' and not draggingWidget:isVirtual()
|
||||
if hovered and (gotItem or gotMap) then
|
||||
self:setBorderWidth(1)
|
||||
|
Reference in New Issue
Block a user