Towny-Network / Worldshop

A Minecraft designed as an alternative to the conventional in-game economy. By replacing standard currnency with a barting system, the issue of rampant economy inflation is mitigated.
Other
0 stars 0 forks source link

Change shop gui to use the localized name method to identify menus #2

Closed OneBiteAidan closed 1 year ago

OneBiteAidan commented 1 year ago

Checking the title of an inventory isn't enough. Especially when almost all of our menus contain the word "WorldShop". The best way to take care of this is to set an itemstack that wont ever change (like an info button or a exit/back button) and set it's localized name to something that identifies the menu. Then use that localized name when checking if an inventory is the one you want it to be.

image image