Random server freezes
oleg599 opened this issue ยท 9 comments
Hi!
When i use items, which used EntityManaBurst - server random freezing, stacktrace is showing on superUpdate() method. Another problem with items, which used EntityVineball, but stacktrace is showing on onImpact() method.
Please optimize logic in your mod, because it's very important part of Botania.
Problematic code:
EntityManaBurst:
List list = worldObj.getEntitiesWithinAABBExcludingEntity(this, boundingBox.addCoord(motionX, motionY, motionZ).expand(1.0D, 1.0D, 1.0D)); // Problematic code
double d0 = 0.0D;
EntityLivingBase entitylivingbase = getThrower();
for(int j = 0; j < list.size(); ++j) {
//
}
EntityVineBall:
while(y > 0) { // Problematic loop
Block block = worldObj.getBlock(x, y, z);
if(block.isAir(worldObj, x, y, z)) {
worldObj.setBlock(x, y, z, ModBlocks.solidVines, metaPlace[meta - 2], 1 | 2);
worldObj.playAuxSFX(2001, x, y, z, Block.getIdFromBlock(ModBlocks.solidVines) + (metaPlace[meta - 2] << 12));
y--;
} else break;
}
PS Server freezes hard, I need restart Java for fix.
It seems like you're running cauldron. If you can reproduce this on forge I'll have a look, but outside of that I can't do much.