I'm using Kotlin, and I'm getting this error in my two mobs classes (one of which extends ZombieVillager):
Inherited platform declarations clash: The following declarations have the same JVM signature (equals(Ljava/lang/Object;)Z):
fun equals(p0: Any): Boolean defined in MyMobClass
fun equals(other: Any?): Boolean defined in MyMobClass
I got it after updating from 1.21.10 to 1.21.11 and fixing all the compile errors in my mod.
I never override the equals method in the interfaces that my mobs implement, and the only instance of this override that I could found in the vanilla code is:
@Override
public boolean equals(Object object) {
return object instanceof Entity ? ((Entity)object).id == this.id : false;
}
From Entity, is there anything I can do about it?