GregTechCEu / GregTech

GregTech CE 1.12 fork continuing progression and development
GNU Lesser General Public License v3.0
254 stars 176 forks source link

Allow for recipes with 0% drop rates #2662

Open myutin opened 1 week ago

myutin commented 1 week ago

GregTech CEu Version

v2.8.10

Related Problem

I want to add custom recipes to my pack which have a 0% base drop rate and a nonzero overclock boost. This effectively gates certain chanced drops to one voltage tier above the recipe's tier. Currently, when I try to do this, the pack refuses to launch.

Your Solution

Switch 0 >= to 0 > in one line

https://github.com/GregTechCEu/GregTech/blob/c0c5b60c15c3c989699538359cae75bbe4fd25d3/src/main/java/gregtech/api/recipes/RecipeBuilder.java#L627

Additional Information

No response