mirror of
https://github.com/edubart/otclient.git
synced 2025-04-29 01:09:20 +02:00
Fix ghost item border when dropping non-item objects (#1164)
This commit is contained in:
parent
1d614e294c
commit
9eb13494f9
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user