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.
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.