Interactive-Modding / Jurassic-Reborn

GNU Lesser General Public License v2.1
13 stars 23 forks source link

else if block is never executed #42

Open TimTheToaster opened 3 years ago

TimTheToaster commented 3 years ago

The following code is never executed because the same condition is in a higher if block

https://github.com/Interactive-Modding/JurassicWorldRebornMod/blob/185e6273a372dd4d2c5602a4001759aff39b5111/src/main/java/mod/reborn/server/entity/ai/navigation/DinosaurWalkNodeProcessor.java#L232

I found this because I was wondering why the Raptors don't try to climb out of an unpowered fence