Mercurial > wow > askmrrobot
comparison AskMrRobot-Serializer/AskMrRobot-Serializer.lua @ 127:65c285394049 v59
Fixed an issue with reading bank data.
| author | yellowfive |
|---|---|
| date | Tue, 17 Jul 2018 16:32:12 -0700 |
| parents | e31b02b24488 |
| children | d9a059484b22 |
comparison
equal
deleted
inserted
replaced
| 126:c005f9a393c1 | 127:65c285394049 |
|---|---|
| 1 -- AskMrRobot-Serializer will serialize and communicate character data between users. | 1 -- AskMrRobot-Serializer will serialize and communicate character data between users. |
| 2 | 2 |
| 3 local MAJOR, MINOR = "AskMrRobot-Serializer", 58 | 3 local MAJOR, MINOR = "AskMrRobot-Serializer", 59 |
| 4 local Amr, oldminor = LibStub:NewLibrary(MAJOR, MINOR) | 4 local Amr, oldminor = LibStub:NewLibrary(MAJOR, MINOR) |
| 5 | 5 |
| 6 if not Amr then return end -- already loaded by something else | 6 if not Amr then return end -- already loaded by something else |
| 7 | 7 |
| 8 -- event and comm used for player snapshotting on entering combat | 8 -- event and comm used for player snapshotting on entering combat |
| 729 if itemData then | 729 if itemData then |
| 730 table.insert(itemObjects, itemData) | 730 table.insert(itemObjects, itemData) |
| 731 end | 731 end |
| 732 end | 732 end |
| 733 end | 733 end |
| 734 if data.BankItems then | 734 if data.BankItems then |
| 735 for i, itemData in ipairs(data.BankItems) do | 735 for i, itemData in ipairs(data.BankItems) do |
| 736 if itemData then | 736 if itemData then |
| 737 table.insert(itemObjects, itemData) | 737 table.insert(itemObjects, itemData) |
| 738 end | 738 end |
| 739 end | 739 end |
| 740 end | 740 end |
| 741 | 741 |
