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

Plant returned by ItemSeeds#getPlant is always cotton #499

Open
sam-kirby opened this issue Jun 26, 2020 · 0 comments
Open

Plant returned by ItemSeeds#getPlant is always cotton #499

sam-kirby opened this issue Jun 26, 2020 · 0 comments

Comments

@sam-kirby
Copy link

Version Information

Minecraft: 1.12.2
Forge: 14.23.5.2854
Mantle:
Natura: d5b4bdd

Report Information

Both barley and cotton seeds return natura:cotton_crop[age=0] from getPlant.

This is because cotton is registered last during item registration, and the crop is a static field. Changing this to a map of meta to crop, and performing a lookup in getPlant should resolve this.

https://github.com/progwml6/Natura/blob/1.12/src/main/java/com/progwml6/natura/overworld/item/ItemSeeds.java#L22

Steps to Reproduce

N/A

Crash Log

N/A

Forge Log

N/A

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