mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +02:00
rename item data to count, add function to get current class name in lua
This commit is contained in:
@@ -30,7 +30,7 @@ function UIItem:onDrop(widget, mousePos)
|
||||
if not widget or not widget.currentDragThing then return true end
|
||||
|
||||
local pos = self.position
|
||||
local data = widget.currentDragThing:getData()
|
||||
local data = widget.currentDragThing:getCount()
|
||||
if widget.currentDragThing:isStackable() and data > 1 then
|
||||
widget.parsed = true
|
||||
local moveWindow = displayUI('/game/movewindow.otui')
|
||||
|
Reference in New Issue
Block a user