Team-RTG / Realistic-Terrain-Generation

The Realistic Terrain Generation mod for Minecraft.
GNU General Public License v3.0
245 stars 117 forks source link

ClassCastException in SaplingGrowTreeRTG #1289

Closed srs-bsns closed 5 years ago

srs-bsns commented 6 years ago

Crash report: crash-2018-08-18_07.30.33-server.txt

This entire block of code: https://github.com/Team-RTG/Realistic-Terrain-Generation/blob/1.12.2-dev/src/main/java/rtg/event/EventManagerRTG.java#L303-L312

can be replaced with:

            IRealisticBiome rb = RTGAPI.getRTGBiome(event.getWorld().getBiome(event.getPos()));