GregTech CE Unofficial

GregTech CE Unofficial

412k Downloads

Allow for recipes with 0% drop rates

myutin opened this issue ยท 0 comments

commented

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

if (0 >= chance || chance > ChancedOutputLogic.getMaxChancedValue()) {

Additional Information

No response