RoBrit / Moo-Fluids

Mod for Minecraft that dynamically generates 'milkable' cows for various fluids
GNU General Public License v3.0
16 stars 18 forks source link

Server crash points to Fluid Cows as cause #56

Closed Dreghert closed 6 years ago

Dreghert commented 7 years ago

I get a lot of crashes on my server with "Description: Exception in server tick loop" where it points to Moo Fluids as being the culprit:

Caused by: java.lang.NullPointerException at com.robrit.moofluids.common.entity.EntityFluidCow.writeSpawnData(EntityFluidCow.java:326)

Latest crash report in pastebin form:

https://pastebin.com/fG0km5zM

I love this mod, and don't want to uninstall it, but if it is what is causing these frequent crashes, I need to know how to fix it. It seems to happen most when people are walking around, ie, loading chunks, and causing the fluid cows to spawn, and something goes wrong.

Any assistance/advice/fix would be greatly appreciated. Thank you for the awesome mod, and thank you in advance for the help.

LunaSquee commented 6 years ago

I've just had this same exact crash while loading new chunks

brisingraerowing commented 6 years ago

The only thing that can be null on the referenced line is the fluid reference. #55 has a fix for the same issue for a newer version, and it likely can be directly backported to older versions.

llaya commented 6 years ago

i think i just encountered the same problem.. how do i fix this? other similar servers have no problems so i know it's something that can be avoided somehow.