When a village creates a building that only has a female villager defined an exception is thrown. This looks to be a coding error in the Building class. Attached are the millenaire.log file and the Forge log.
Pretty sure the error in the code is on this line:
if ((this.location.femaleResident.size() > 0) && (!this.culture.getVillagerType((String)this.location.maleResident.get(0)).isChild)) {
And it should be:
if ((this.location.femaleResident.size() > 0) && (!this.culture.getVillagerType((String)this.location.femaleResident.get(0)).isChild)) {
Looks like just a copy/paste mistake but one you would probably not have encountered as there are no female only buildings in the default cultures.
Exception when creating a building with female only resident
Exception when creating a building with female only resident
- Attachments
-
- ForgeModLoader-client-0.log
- (139.28 KiB) Downloaded 241 times
-
- millenaire.log
- (2.89 KiB) Downloaded 221 times
Re: Exception when creating a building with female only resi
Indeed! Fixed for the next release. Good catch.