bigbang87 / deadly-monsters

Mod for Minecraft. New unique monsters, terrible and dangerous creatures. Use the new fortification blocks to defend yourself against them.
MIT License
4 stars 14 forks source link

[1.12.2] Haunted Cow crash #19

Open naqaden opened 6 years ago

naqaden commented 6 years ago

Enabling Haunted Cow with a spawn rate of 0 crashes Minecraft (WeightedRandom error), often when loading new chunks.

The same settings on other monsters is not a problem. Disabling Haunted Cow stops the crashes, but I don't want to remove them from the game. Setting a spawn rate of 1+ stops the crashes, but I don't want them to spawn on their own. I only want them to appear as a punishment for punching cows.

I noticed Haunted Cow is the only entity registered with EnumCreatureType.CREATURE in ModEntities.java so I changed it to EnumCreatureType.MONSTER like the others. This fixed the problem for me.