Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Gearswap: On login, player.equipment.sub returns nil erroneously until GS is reloaded #1514
When I first log in, the line: add_to_chat(154,'EqSub: '..player.equipment.sub) in my PLD.lua produces the error "attempt to concatenate field 'sub' (a nil value)" until //gs reload, after which no error occurs and the line executes successfully. This happens even when my Ochain is equipped at login. Happens on dev or live.
I've noticed something like this, it seems player.equipment.whatever doesn't seem to actively refresh with globals on player gear, only whenever gearswap sends an equip packet does it update, and it's not even always right about that, if the equip fails to say lack of dual wield, or if you change the equipment without using gearswap, it still thinks you have whatever the last gearswap-created equip packet sent was supposed to equip, at least that's my best from what I've observed.