mirror of
https://github.com/edubart/otclient.git
synced 2025-04-30 01:29:21 +02:00
Update uiitem.lua
Indentation
This commit is contained in:
parent
91a80017b4
commit
3019e88293
@ -22,12 +22,12 @@ end
|
|||||||
function UIItem:onDrop(widget, mousePos)
|
function UIItem:onDrop(widget, mousePos)
|
||||||
|
|
||||||
if not self:canAcceptDrop(widget, mousePos) then
|
if not self:canAcceptDrop(widget, mousePos) then
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
local item = widget.currentDragThing
|
local item = widget.currentDragThing
|
||||||
if not item:isItem() then
|
if not item:isItem() then
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
local itemPos = item:getPosition()
|
local itemPos = item:getPosition()
|
||||||
@ -38,7 +38,7 @@ function UIItem:onDrop(widget, mousePos)
|
|||||||
|
|
||||||
local toPos = self.position
|
local toPos = self.position
|
||||||
if itemPos.x == toPos.x and itemPos.y == toPos.y and itemPos.z == toPos.z then
|
if itemPos.x == toPos.x and itemPos.y == toPos.y and itemPos.z == toPos.z then
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
if item:getCount() > 1 then
|
if item:getCount() > 1 then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user