mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 12:04:55 +02:00
move up menu, still need a higher level function
This commit is contained in:
@@ -38,7 +38,7 @@ function UIGameMap:onDrop(widget, mousePos)
|
||||
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
|
||||
if item:getCount() > 1 then
|
||||
GameInterface.moveStackableItem(item, toPos)
|
||||
else
|
||||
g_game.move(item, toPos, 1)
|
||||
|
@@ -29,7 +29,7 @@ function UIItem:onDrop(widget, mousePos)
|
||||
local itemPos = item:getPosition()
|
||||
if itemPos.x == self.position.x and itemPos.y == self.position.y and itemPos.z == self.position.z then return false end
|
||||
|
||||
if item:isStackable() and item:getCount() > 1 then
|
||||
if item:getCount() > 1 then
|
||||
GameInterface.moveStackableItem(item, toPos)
|
||||
else
|
||||
g_game.move(item, toPos, 1)
|
||||
|
Reference in New Issue
Block a user