Cancelling Loaded Recipes (the second time).
Good evening, all.
I have a custom plugin on my server which serves as an 'item manager'. Part of this plugin's function is to override a few vanilla recipes, either disabling them or adjusting them.
Of course, when a server is started up for the first time, somewhere along the startup messages, we'll see this:
That is normal and not of concern. Once the recipes are loaded, the custom plugin steps in and begins to remove some recipes. And it does so successfully.
However, after some time (during the same restart/boot-up), we'll get the
Loaded 1370 recipes
message AGAIN, essentially once again overriding all the work that the custom plugin has done, and replacing all recipes with the vanilla variant again.
Is there a way to cancel the SECOND recipe load so our work doesn't get overridden? I know this doesn't happen on most other servers either so unsure why it's happening here.7 Replies
I can’t immediately find an event that is named in a way that would indicate it is responsible for loading recipes. I’d probably start by looking at a local copy of the paper’s source code (by running a build first) and try to find what’s printing the message.
Even if there was an event, I highly doubt you’d be able to cancel it
that makes sense and yeah you're right, i just don't understand why it's trying to load the recipes TWICE instead of just the one time at the start. i am using pufferfish so maybe i could try going back to regular paper, but it does suck a little bit
are there any other plugins
a lot yeah. but i've checked to make sure that no other plugins are interfering with recipes
nexo, mythiccrucible, even cmi, all shouldn't be interfering
also, the ServerLoadEvent may be fired? I haven’t looked at the source
iirc nexo has done some funky stuff with crafting and datapacks in the past (although maybe that was worldgen, I don’t remember)
was likely worldgen. we setup another server with nexo, same settings and all. only 1 recipe loading msg happening over there
neither servers using worldgen
I’d check if the ServerLoadEvents gets fired on the 2nd message