Database error
Sataniel98 opened this issue · 7 comments
Using a clean environment with nothing but Brewery, the DrinkListener fails to recognize the brew here.
Steps to reproduce:
- Setup a server with nothing but Brewery
- Do "/brew create Fine Beer" and drink the item
- The player gets fire resistance.
Error:
[Brewery] ERROR: Database failure! unable to find UID -2 of a custom Potion!
Uh thats bad..
Probably because the ConsumeEvent in the DrinkListener1_9 and in PlayerListener are both on MONITOR. So its unclear which one is being called first.
The PlayerListener removes the brew so when DrinkListener1_9 is called after that for it cant find it.
Fixed here: 20c6845
Dont set the base potion to Mundane, just replace the potion when drinking.
Tested and works on 1.9.2
I didn't notice it at all. The issue has been posted at SpigotMC and I had my IDE opened, so I tested and debugged a bit. Aber warum zur Hölle schreiben wir überhaupt auf Englisch O_o
Keine Ahnung, vielleicht will ja jemand mitlesen :D
Ja danke, so konnte ich das schnell fixen.
Würde dann jetzt die 1.4.4 releasen, vielleicht kannst du es noch eben schnell bei dir testen wenn du Zeit hast?