mirror of
https://github.com/edubart/otclient.git
synced 2025-12-13 20:39:46 +01:00
Fix ghost item border when dropping non-item objects (#1164)
This commit is contained in:
@@ -20,6 +20,7 @@ function UIItem:onDragLeave(droppedWidget, mousePos)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function UIItem:onDrop(widget, mousePos)
|
function UIItem:onDrop(widget, mousePos)
|
||||||
|
self:setBorderWidth(0)
|
||||||
|
|
||||||
if not self:canAcceptDrop(widget, mousePos) then
|
if not self:canAcceptDrop(widget, mousePos) then
|
||||||
return false
|
return false
|
||||||
@@ -47,7 +48,6 @@ function UIItem:onDrop(widget, mousePos)
|
|||||||
g_game.move(item, toPos, 1)
|
g_game.move(item, toPos, 1)
|
||||||
end
|
end
|
||||||
|
|
||||||
self:setBorderWidth(0)
|
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user