David Cernat
91be790081
[InventoryHelper] Fix possible crash in charge comparison
2022-03-26 20:05:01 +02:00
David Cernat
b835c95158
[InventoryHelper] Fix possible crash in soul comparison
2022-02-19 23:42:19 +02:00
David Cernat
d6d23c90ef
[InventoryHelper] Add more nil checks to prevent custom script crashes
2019-12-05 20:20:31 +02:00
David Cernat
75002c9fb8
[InventoryHelper] Round down charges and enchantmentCharges
...
This prevents issues with finding certain items when their decimals are slightly different on clients compared to the server data.
2019-01-16 09:59:47 +02:00
David Cernat
be24a0f8f5
[InventoryHelper] Add removeClosestItem() and compareClosenessToItem()
...
Add getItemIndexes()
Turn the previous removeItem() into removeExactItem() and remove its return value because it had no use.
Make the new removeItem() call removeClosestItem() instead.
2019-01-16 08:50:40 +02:00
David Cernat
b825f94b6f
[General] Move inventoryHelper from lib to scripts
2018-11-11 20:04:26 +02:00