Botania

Botania

133M Downloads

Random server freezes

oleg599 opened this issue ยท 9 comments

commented

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.

commented

Stack trace is a server report

commented

I know what a stack trace is, I want to know what it says.

commented

Get a copy of the full log on pastebin or gist please.

commented

What's the stack trace?

commented

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.

commented

Yes, it's Cauldron.

commented

@oleg599 @Vazkii can't debug on Cauldron, test this on a plain Forge + Botania server to see if it is actually a Botania issue