brenoepics / morningstar

An open-source Arcturus Community Fork.
GNU General Public License v3.0
3 stars 2 forks source link

[SUGGESTION] Don't load catalog_items if amount is 0/-1 #1027

Closed brenoepics closed 1 year ago

brenoepics commented 2 years ago

In GitLab by @TheOleg on Aug 12, 2022, 20:53

Please add extra SQL check for loading catalog_items. There are cases, when item is not intended for selling, but deletion/moving item to different page breaks integrity with Habbo's Furnidata, so it will be much easier to keep item in database, but just hide it.

Creating a new field in db table may break compatibility, but adding an extra condition in sql should be safe.