Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for recipes with 0% drop rates #2662

Open
myutin opened this issue Nov 16, 2024 · 0 comments
Open

Allow for recipes with 0% drop rates #2662

myutin opened this issue Nov 16, 2024 · 0 comments

Comments

@myutin
Copy link

myutin commented Nov 16, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant