Natura

Natura

55M Downloads

Plant returned by ItemSeeds#getPlant is always cotton

sam-kirby opened this issue ยท 0 comments

commented

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