Skip to content

Preventing script crash if 'shopData' is nil#23

Open
error3011 wants to merge 3 commits into
wasabirobby:mainfrom
error3011:main
Open

Preventing script crash if 'shopData' is nil#23
error3011 wants to merge 3 commits into
wasabirobby:mainfrom
error3011:main

Conversation

@error3011

Copy link
Copy Markdown

Simple work around to prevent script from crashing if item metadata does not exist. It adds temporary metadata to items that don't have them and sets the price to default price defined in config.lua

This is not permanent solution but rather a patch for issue that exists.

Issue with items not getting their metadata added when trying to stack them with items that have them still remains but script does not crash when it finds items with no metadata.

2 issues were created that reported this problem before: #13 #20

Added crash prevention if item metadata is nil
New variable for fix in server.lua
Reverted event names to original one
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant