mirror of
https://github.com/edubart/otclient.git
synced 2025-10-16 04:24:54 +02:00
items movement fixed, spinbox style changed
This commit is contained in:
@@ -32,6 +32,10 @@ function UIGameMap:onDrop(widget, mousePos)
|
||||
|
||||
local item = widget.currentDragThing
|
||||
local toPos = tile:getPosition()
|
||||
|
||||
local itemPos = item:getPosition()
|
||||
if itemPos.x == toPos.x and itemPos.y == toPos.y and itemPos.z == toPos.z then return false end
|
||||
|
||||
if item:isStackable() and item:getCount() > 1 then
|
||||
GameInterface.moveStackableItem(item, toPos)
|
||||
else
|
||||
|
Reference in New Issue
Block a user