Version 2.1 - imbuements, wrap/unwrap, 4 byte header, packet compression and other features

This commit is contained in:
OTCv8
2020-03-13 23:35:44 +01:00
parent dbfad99ca4
commit b58076a675
36 changed files with 1740 additions and 251 deletions

View File

@@ -26,11 +26,7 @@ function UIItem:onDrop(widget, mousePos, forced)
if not item or not item:isItem() then return false end
if self.selectable then
self:setItemId(item:getId())
self:setItemCount(item:getCount())
if item:getSubType() > 1 then
self:setItemSubType(item:getSubType())
end
self:setItem(Item.create(item:getId(), item:getCount()))
return
end