Server Crash
monster860 opened this issue · 7 comments
The server crashed when one of izman1234's children had a child and the child spawned in a armor stand. The server runs MCPC+. StackTrace:
java.lang.NullPointerException: Ticking entity
at mca.core.util.object.FamilyTree.getRelationOf(FamilyTree.java:274)
at mca.entity.AbstractEntity.updateBabyGrowth(AbstractEntity.java:2074)
at mca.entity.EntityVillagerAdult.func_70071_h_(EntityVillagerAdult.java:280)
at net.minecraft.world.World.func_72866_a(World.java:2679)
at net.minecraft.world.WorldServer.func_72866_a(WorldServer.java:836)
at net.minecraft.world.World.func_72870_g(World.java:2633)
at net.minecraft.world.World.func_72939_s(World.java:2444)
at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:667)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:893)
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:429)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:759)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:622)
at java.lang.Thread.run(Unknown Source)
It appears that the server crashed while trying to figure out whether izman1234 was a grandfather or a grandmother
final WorldPropertiesManager manager = MCA.getInstance().playerWorldManagerMap.get(MCA.getInstance().getPlayerByID(owner.worldObj, mcaID).getCommandSenderName());
if (manager.worldProperties.playerGender.equals("Male"))
{
return EnumRelation.Grandfather;
}
else
{
return EnumRelation.Grandmother;
}
did you find any solution? We cannot log in our server anymore. I just had a baby with a villager and then it crashed.
---- Minecraft Crash Report ----
// Ouch. That hurt :(
Description: Ticking entity
java.lang.NullPointerException: Ticking entity
at mca.core.util.object.FamilyTree.getRelationOf(FamilyTree.java:274)
at mca.entity.AbstractEntity.updateBabyGrowth(AbstractEntity.java:2057)
at mca.entity.EntityVillagerAdult.func_70071_h_(EntityVillagerAdult.java:280)
at net.minecraft.world.World.func_72866_a(World.java:2019)
at net.minecraft.world.WorldServer.func_72866_a(WorldServer.java:659)
at net.minecraft.world.World.func_72870_g(World.java:1983)
at net.minecraft.world.World.func_72939_s(World.java:1836)
at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:500)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:616)
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:326)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:527)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:414)
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:665)
A detailed walkthrough of the error, its code path and all known details is as follows:
( tell me if you need the details)
thanks
The only solution I found was to go into MCEdit and delete the offending
entity
On Fri, Jul 4, 2014 at 5:23 AM, crouman1000 [email protected]
wrote:
did you find any solution?
—
Reply to this email directly or view it on GitHub
#134 (comment)
.
There's MCEdit
Okay, latest change should prevent the crash as this problem seems to be very rare. If a player mentions that his relations to MCA villagers do not seem correct, have him/her log out and log back in.
Alright thanks
Date: Sun, 17 Aug 2014 22:33:58 -0700
From: [email protected]
To: [email protected]
CC: [email protected]
Subject: Re: [minecraft-comes-alive] Server Crash (#134)
Okay, latest change should prevent the crash as this problem seems to be very rare. If a player mentions that his relations to MCA villagers do not seem correct, have him/her log out and log back in.
—
Reply to this email directly or view it on GitHub.