mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-02 19:42:05 -04:00
Fixed equip command breaking due to gearset referencing slot not actual item in slot.
This commit is contained in:
parent
fea8638775
commit
e91960040c
@ -85,7 +85,7 @@ function loadGearset(player, classId)
|
|||||||
for slot = 0, 34 do
|
for slot = 0, 34 do
|
||||||
|
|
||||||
if (slot ~= EQUIPSLOT_MAINHAND and slot ~= EQUIPSLOT_UNDERSHIRT and slot ~= EQUIPSLOT_UNDERGARMENT) then
|
if (slot ~= EQUIPSLOT_MAINHAND and slot ~= EQUIPSLOT_UNDERSHIRT and slot ~= EQUIPSLOT_UNDERGARMENT) then
|
||||||
itemAtSlot = slot;
|
itemAtSlot = player:GetEquipment():GetItemAtSlot(slot);
|
||||||
itemAtGearsetSlot = gearset[slot];
|
itemAtGearsetSlot = gearset[slot];
|
||||||
|
|
||||||
if (itemAtSlot ~= nil or itemAtGearsetSlot ~= nil) then
|
if (itemAtSlot ~= nil or itemAtGearsetSlot ~= nil) then
|
||||||
|
Loading…
Reference in New Issue
Block a user