CivClassic / ItemExchange

ItemExchange is a Minecraft plugin that allows players to make shops to physically buy and sell items. Built for Paper 1.16.5
Other
0 stars 10 forks source link

Brews are now fully supported #6

Closed Protonull closed 5 years ago

Protonull commented 5 years ago

Brewery uses a negative duration of Regeneration as a custom effect as a unique identifier, and so when an exchange rule is created for a Brew, that id is saved and so only that particular brew can be sold. This patch updates the creation and matching functions to ignore negative duration regeneration entirely, meaning that brews can now match each other.

Brews still differ by their base potion type, their display name, and their lore such as their age, distill amount, and the wood of the barrel, and so wildly different brews should not start matching.