mirror of
https://github.com/edubart/otclient.git
synced 2025-10-24 00:05:02 +02: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
|
||||
|
||||
function UIItem:onDrop(widget, mousePos)
|
||||
self:setBorderWidth(0)
|
||||
|
||||
if not self:canAcceptDrop(widget, mousePos) then
|
||||
return false
|
||||
@@ -47,7 +48,6 @@ function UIItem:onDrop(widget, mousePos)
|
||||
g_game.move(item, toPos, 1)
|
||||
end
|
||||
|
||||
self:setBorderWidth(0)
|
||||
return true
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user