Skip to content

Commit

Permalink
Fixed onMoveItem parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Oen44 committed Nov 26, 2021
1 parent 49c39c4 commit 4f19675
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/UpgradeSystem/core.lua
@@ -1,4 +1,4 @@
local UPGRADE_SYSTEM_VERSION = "3.0.0"
local UPGRADE_SYSTEM_VERSION = "3.0.1"
print(">> Loaded Upgrade System v" .. UPGRADE_SYSTEM_VERSION)

US_CONDITIONS = {}
Expand Down Expand Up @@ -104,7 +104,7 @@ function us_onEquip(cid, iuid, slot)
end
end

MoveItemEvent.onMoveItem = function(player, item, fromPosition, toPosition)
MoveItemEvent.onMoveItem = function(player, item, count, fromPosition, toPosition, fromCylinder, toCylinder)
if not item:getType():isUpgradable() and not item:getType():canHaveItemLevel() or toPosition.y == CONST_SLOT_AMMO then
return true
end
Expand Down

0 comments on commit 4f19675

Please sign in to comment.