|
|
@ -29,7 +29,7 @@ function UIItem:onDrop(widget, mousePos)
|
|
|
|
local itemPos = item:getPosition()
|
|
|
|
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 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)
|
|
|
|
GameInterface.moveStackableItem(item, toPos)
|
|
|
|
else
|
|
|
|
else
|
|
|
|
g_game.move(item, toPos, 1)
|
|
|
|
g_game.move(item, toPos, 1)
|
|
|
|