Jump to content

Recommended Posts

Posted

Hi everyone!

I've been having issues with having potion effects on my liquid, and I thought that I finally solved them, because I took some code from Minefactory Reloaded. I ran the game and everything seemed fine. I created a new world, place down my liquid, and then the game crashed, saying that it was some sort of server issue. I don't know what to do now, so I am posting here.

 

This is the only relevant code, the code for the BlockCorrosiveAcid class:

package com.leonardude.zether.liquids;

import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLiving;
import net.minecraft.entity.monster.EntityMob;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.potion.Potion;
import net.minecraft.potion.PotionEffect;
import net.minecraft.util.Icon;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import net.minecraftforge.fluids.BlockFluidClassic;

import com.leonardude.zether.main.Zether;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;

public class BlockCorrosiveAcid extends BlockFluidClassic {

public BlockCorrosiveAcid(int id) {
	super(id, Zether.fluidCorrosiveAcid, Material.water);
	this.setCreativeTab(CreativeTabs.tabBlock);
	Zether.fluidCorrosiveAcid.setBlockID(id);
}

@Override
public void onEntityCollidedWithBlock( World world, int x, int y, int z, Entity entity ) {

	if (world.isRemote) {
                return;
        }

	if(entity instanceof EntityPlayer || entity instanceof EntityMob && !((EntityLiving)entity).isEntityUndead()) {
		((EntityLiving)entity).addPotionEffect(new PotionEffect(Potion.moveSlowdown.id, 200, 1));
	}

	super.onEntityCollidedWithBlock(world, x, y, z, entity);
}

@Override
@SideOnly(Side.CLIENT)
public Icon getIcon(int side, int meta) {
	return Block.waterMoving.getIcon(side, meta);
}

@Override
public int colorMultiplier(IBlockAccess iblockaccess, int x, int y, int z) {
	return 0x66FF00;
}

}

 

Thanks for putting up with the longish post and thanks in advance for answering!

 

;D ;D ;D ;D

Leonardude

Posted

I totally forgot to paste the crash logs!

This is the what the console said:

2013-11-03 15:06:58 [iNFO] [sTDERR] net.minecraft.util.ReportedException: Colliding entity with tile
2013-11-03 15:06:58 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:674)
2013-11-03 15:06:58 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:587)
2013-11-03 15:06:58 [iNFO] [sTDERR] 	at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:129)
2013-11-03 15:06:58 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484)
2013-11-03 15:06:58 [iNFO] [sTDERR] 	at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
2013-11-03 15:06:58 [iNFO] [sTDERR] Caused by: java.lang.ClassCastException: net.minecraft.entity.item.EntityItem cannot be cast to net.minecraft.entity.EntityLiving
2013-11-03 15:06:58 [iNFO] [sTDERR] 	at com.leonardude.zether.liquids.BlockCorrosiveAcid.onEntityCollidedWithBlock(BlockCorrosiveAcid.java:38)
2013-11-03 15:06:58 [iNFO] [sTDERR] 	at net.minecraft.entity.Entity.doBlockCollisions(Entity.java:1018)
2013-11-03 15:06:58 [iNFO] [sTDERR] 	at net.minecraft.entity.Entity.moveEntity(Entity.java:951)
2013-11-03 15:06:58 [iNFO] [sTDERR] 	at net.minecraft.entity.item.EntityItem.onUpdate(EntityItem.java:113)
2013-11-03 15:06:58 [iNFO] [sTDERR] 	at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2350)
2013-11-03 15:06:58 [iNFO] [sTDERR] 	at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:719)
2013-11-03 15:06:58 [iNFO] [sTDERR] 	at net.minecraft.world.World.updateEntity(World.java:2311)
2013-11-03 15:06:58 [iNFO] [sTDERR] 	at net.minecraft.world.World.updateEntities(World.java:2157)
2013-11-03 15:06:58 [iNFO] [sTDERR] 	at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:550)
2013-11-03 15:06:58 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:668)
2013-11-03 15:06:58 [iNFO] [sTDERR] 	... 4 more
2013-11-03 15:06:58 [sEVERE] [Minecraft-Server] Encountered an unexpected exception ReportedException
net.minecraft.util.ReportedException: Colliding entity with tile
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:674)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:587)
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:129)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484)
at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
Caused by: java.lang.ClassCastException: net.minecraft.entity.item.EntityItem cannot be cast to net.minecraft.entity.EntityLiving
at com.leonardude.zether.liquids.BlockCorrosiveAcid.onEntityCollidedWithBlock(BlockCorrosiveAcid.java:38)
at net.minecraft.entity.Entity.doBlockCollisions(Entity.java:1018)
at net.minecraft.entity.Entity.moveEntity(Entity.java:951)
at net.minecraft.entity.item.EntityItem.onUpdate(EntityItem.java:113)
at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2350)
at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:719)
at net.minecraft.world.World.updateEntity(World.java:2311)
at net.minecraft.world.World.updateEntities(World.java:2157)
at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:550)
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:668)
... 4 more
2013-11-03 15:06:58 [sEVERE] [Minecraft-Server] This crash report has been saved to: /Users/Shared/Videos_Captured/LeoCoding/Minecraft Modding/forge/mcp/jars/./crash-reports/crash-2013-11-03_15.06.58-server.txt
2013-11-03 15:06:58 [iNFO] [Minecraft-Server] Stopping server
2013-11-03 15:06:58 [iNFO] [Minecraft-Server] Saving players
2013-11-03 15:06:58 [iNFO] [Minecraft-Server] Player182 left the game
2013-11-03 15:06:58 [iNFO] [Minecraft-Server] Saving worlds
2013-11-03 15:06:58 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/Overworld
2013-11-03 15:06:58 [iNFO] [sTDOUT] ---- Minecraft Crash Report ----
2013-11-03 15:06:59 [iNFO] [sTDOUT] // I'm sorry, Dave.
2013-11-03 15:06:59 [iNFO] [sTDOUT] 
2013-11-03 15:06:59 [iNFO] [sTDOUT] Time: 11/3/13 3:06 PM
2013-11-03 15:06:59 [iNFO] [sTDOUT] Description: Colliding entity with tile
2013-11-03 15:06:59 [iNFO] [sTDOUT] 
2013-11-03 15:06:59 [iNFO] [sTDOUT] java.lang.ClassCastException: net.minecraft.entity.item.EntityItem cannot be cast to net.minecraft.entity.EntityLiving
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	at com.leonardude.zether.liquids.BlockCorrosiveAcid.onEntityCollidedWithBlock(BlockCorrosiveAcid.java:38)
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	at net.minecraft.entity.Entity.doBlockCollisions(Entity.java:1018)
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	at net.minecraft.entity.Entity.moveEntity(Entity.java:951)
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	at net.minecraft.entity.item.EntityItem.onUpdate(EntityItem.java:113)
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2350)
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:719)
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	at net.minecraft.world.World.updateEntity(World.java:2311)
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	at net.minecraft.world.World.updateEntities(World.java:2157)
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:550)
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:668)
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:587)
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:129)
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484)
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
2013-11-03 15:06:59 [iNFO] [sTDOUT] 
2013-11-03 15:06:59 [iNFO] [sTDOUT] 
2013-11-03 15:06:59 [iNFO] [sTDOUT] A detailed walkthrough of the error, its code path and all known details is as follows:
2013-11-03 15:06:59 [iNFO] [sTDOUT] ---------------------------------------------------------------------------------------
2013-11-03 15:06:59 [iNFO] [sTDOUT] 
2013-11-03 15:06:59 [iNFO] [sTDOUT] -- Head --
2013-11-03 15:06:59 [iNFO] [sTDOUT] Stacktrace:
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	at com.leonardude.zether.liquids.BlockCorrosiveAcid.onEntityCollidedWithBlock(BlockCorrosiveAcid.java:38)
2013-11-03 15:06:59 [iNFO] [sTDOUT] 
2013-11-03 15:06:59 [iNFO] [sTDOUT] -- Tile being collided with --
2013-11-03 15:06:59 [iNFO] [sTDOUT] Details:
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	Block type: ID #3200 (tile.null // com.leonardude.zether.liquids.BlockCorrosiveAcid)
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	Block data value: 0 / 0x0 / 0b0000
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	Block location: World: (-259,65,250), Chunk: (at 13,4,10 in -17,15; contains blocks -272,0,240 to -257,255,255), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
2013-11-03 15:06:59 [iNFO] [sTDOUT] Stacktrace:
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	at net.minecraft.entity.Entity.doBlockCollisions(Entity.java:1018)
2013-11-03 15:06:59 [iNFO] [sTDOUT] 
2013-11-03 15:06:59 [iNFO] [sTDOUT] -- Entity being checked for collision --
2013-11-03 15:06:59 [iNFO] [sTDOUT] Details:
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	Entity Type: Item (net.minecraft.entity.item.EntityItem)
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	Entity ID: 8885
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	Entity Name: item.item.seeds
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	Entity's Exact location: -258.00, 65.13, 251.06
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	Entity's Block location: World: (-259,65,251), Chunk: (at 13,4,11 in -17,15; contains blocks -272,0,240 to -257,255,255), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	Entity's Momentum: -0.00, 0.00, 0.00
2013-11-03 15:06:59 [iNFO] [sTDOUT] Stacktrace:
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	at net.minecraft.entity.Entity.moveEntity(Entity.java:951)
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	at net.minecraft.entity.item.EntityItem.onUpdate(EntityItem.java:113)
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2350)
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:719)
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	at net.minecraft.world.World.updateEntity(World.java:2311)
2013-11-03 15:06:59 [iNFO] [sTDOUT] 
2013-11-03 15:06:59 [iNFO] [sTDOUT] -- Entity being ticked --
2013-11-03 15:06:59 [iNFO] [sTDOUT] Details:
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	Entity Type: Item (net.minecraft.entity.item.EntityItem)
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	Entity ID: 8885
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	Entity Name: item.item.seeds
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	Entity's Exact location: -258.00, 65.13, 251.06
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	Entity's Block location: World: (-259,65,251), Chunk: (at 13,4,11 in -17,15; contains blocks -272,0,240 to -257,255,255), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	Entity's Momentum: -0.00, 0.00, 0.00
2013-11-03 15:06:59 [iNFO] [sTDOUT] Stacktrace:
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	at net.minecraft.world.World.updateEntities(World.java:2157)
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:550)
2013-11-03 15:06:59 [iNFO] [sTDOUT] 
2013-11-03 15:06:59 [iNFO] [sTDOUT] -- Affected level --
2013-11-03 15:06:59 [iNFO] [sTDOUT] Details:
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	Level name: New World
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	All players: 1 total; [EntityPlayerMP['Player182'/214, l='New World', x=-260.10, y=65.00, z=249.63]]
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	Chunk stats: ServerChunkCache: 625 Drop: 0
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	Level seed: -332537413799752399
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	Level generator: ID 00 - default, ver 1. Features enabled: true
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	Level generator options: 
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	Level spawn location: World: (-268,64,244), Chunk: (at 4,4,4 in -17,15; contains blocks -272,0,240 to -257,255,255), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	Level time: 404 game time, 404 day time
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	Level dimension: 0
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	Level storage version: 0x04ABD - Anvil
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	Level weather: Rain time: 57505 (now: false), thunder time: 73378 (now: false)
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true
2013-11-03 15:06:59 [iNFO] [sTDOUT] Stacktrace:
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:668)
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:587)
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:129)
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484)
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
2013-11-03 15:06:59 [iNFO] [sTDOUT] 
2013-11-03 15:06:59 [iNFO] [sTDOUT] -- System Details --
2013-11-03 15:06:59 [iNFO] [sTDOUT] Details:
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	Minecraft Version: 1.6.4
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	Operating System: Mac OS X (x86_64) version 10.7.5
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	Java Version: 1.6.0_65, Apple Inc.
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Apple Inc.
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	Memory: 869286192 bytes (829 MB) / 1065025536 bytes (1015 MB) up to 1065025536 bytes (1015 MB)
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	AABB Pool Size: 14372 (804832 bytes; 0 MB) allocated, 4237 (237272 bytes; 0 MB) used
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	Suspicious classes: FML and Forge are installed
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	IntCache: cache: 2, tcache: 0, allocated: 1, tallocated: 63
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	FML: MCP v8.11 FML v6.4.20.916 Minecraft Forge 9.11.1.916 4 mods loaded, 4 mods active
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	FML{6.4.20.916} [Forge Mod Loader] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	Forge{9.11.1.916} [Minecraft Forge] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	leonardude_zether{1.0} [Zether] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	Profiler Position: N/A (disabled)
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	Vec3 Pool Size: 2363 (132328 bytes; 0 MB) allocated, 2253 (126168 bytes; 0 MB) used
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	Player Count: 1 / 8; [EntityPlayerMP['Player182'/214, l='New World', x=-260.10, y=65.00, z=249.63]]
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	Type: Integrated Server (map_client.txt)
2013-11-03 15:06:59 [iNFO] [sTDOUT] 	Is Modded: Definitely; Client brand changed to 'fml,forge'
2013-11-03 15:06:59 [iNFO] [sTDOUT] #@!@# Game crashed! Crash report saved to: #@!@# ./crash-reports/crash-2013-11-03_15.06.58-server.txt
2013-11-03 15:06:59 [iNFO] [Minecraft-Server] Stopping server
2013-11-03 15:06:59 [iNFO] [Minecraft-Server] Saving players
2013-11-03 15:06:59 [iNFO] [Minecraft-Server] Saving worlds
2013-11-03 15:06:59 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/Overworld
AL lib: (EE) alc_cleanup: 1 device not closed

 

And this is what was in the crash log:

---- Minecraft Crash Report ----
// Quite honestly, I wouldn't worry myself about that.

Time: 11/3/13 3:06 PM
Description: Colliding entity with tile

java.lang.ClassCastException: net.minecraft.entity.item.EntityItem cannot be cast to net.minecraft.entity.EntityLiving
at com.leonardude.zether.liquids.BlockCorrosiveAcid.onEntityCollidedWithBlock(BlockCorrosiveAcid.java:38)
at net.minecraft.entity.Entity.doBlockCollisions(Entity.java:1018)
at net.minecraft.entity.Entity.moveEntity(Entity.java:951)
at net.minecraft.entity.item.EntityItem.onUpdate(EntityItem.java:113)
at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2350)
at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:719)
at net.minecraft.world.World.updateEntity(World.java:2311)
at net.minecraft.world.World.updateEntities(World.java:2157)
at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:550)
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:668)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:587)
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:129)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484)
at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
at com.leonardude.zether.liquids.BlockCorrosiveAcid.onEntityCollidedWithBlock(BlockCorrosiveAcid.java:38)

-- Tile being collided with --
Details:
Block type: ID #3200 (tile.null // com.leonardude.zether.liquids.BlockCorrosiveAcid)
Block data value: 0 / 0x0 / 0b0000
Block location: World: (-259,65,250), Chunk: (at 13,4,10 in -17,15; contains blocks -272,0,240 to -257,255,255), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
Stacktrace:
at net.minecraft.entity.Entity.doBlockCollisions(Entity.java:1018)

-- Entity being checked for collision --
Details:
Entity Type: Item (net.minecraft.entity.item.EntityItem)
Entity ID: 8885
Entity Name: item.item.seeds
Entity's Exact location: -258.00, 65.13, 251.06
Entity's Block location: World: (-259,65,251), Chunk: (at 13,4,11 in -17,15; contains blocks -272,0,240 to -257,255,255), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
Entity's Momentum: -0.00, 0.00, 0.00
Stacktrace:
at net.minecraft.entity.Entity.moveEntity(Entity.java:951)
at net.minecraft.entity.item.EntityItem.onUpdate(EntityItem.java:113)
at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2350)
at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:719)
at net.minecraft.world.World.updateEntity(World.java:2311)

-- Entity being ticked --
Details:
Entity Type: Item (net.minecraft.entity.item.EntityItem)
Entity ID: 8885
Entity Name: item.item.seeds
Entity's Exact location: -258.00, 65.13, 251.06
Entity's Block location: World: (-259,65,251), Chunk: (at 13,4,11 in -17,15; contains blocks -272,0,240 to -257,255,255), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
Entity's Momentum: -0.00, 0.00, 0.00
Stacktrace:
at net.minecraft.world.World.updateEntities(World.java:2157)
at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:550)

-- Affected level --
Details:
Level name: New World
All players: 1 total; [EntityPlayerMP['Player182'/214, l='New World', x=-260.10, y=65.00, z=249.63]]
Chunk stats: ServerChunkCache: 625 Drop: 0
Level seed: -332537413799752399
Level generator: ID 00 - default, ver 1. Features enabled: true
Level generator options: 
Level spawn location: World: (-268,64,244), Chunk: (at 4,4,4 in -17,15; contains blocks -272,0,240 to -257,255,255), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
Level time: 404 game time, 404 day time
Level dimension: 0
Level storage version: 0x04ABD - Anvil
Level weather: Rain time: 57505 (now: false), thunder time: 73378 (now: false)
Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true
Stacktrace:
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:668)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:587)
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:129)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484)
at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)

-- System Details --
Details:
Minecraft Version: 1.6.4
Operating System: Mac OS X (x86_64) version 10.7.5
Java Version: 1.6.0_65, Apple Inc.
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Apple Inc.
Memory: 869286192 bytes (829 MB) / 1065025536 bytes (1015 MB) up to 1065025536 bytes (1015 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 14372 (804832 bytes; 0 MB) allocated, 4237 (237272 bytes; 0 MB) used
Suspicious classes: FML and Forge are installed
IntCache: cache: 2, tcache: 0, allocated: 1, tallocated: 63
FML: MCP v8.11 FML v6.4.20.916 Minecraft Forge 9.11.1.916 4 mods loaded, 4 mods active
mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
FML{6.4.20.916} [Forge Mod Loader] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Forge{9.11.1.916} [Minecraft Forge] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
leonardude_zether{1.0} [Zether] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Profiler Position: N/A (disabled)
Vec3 Pool Size: 2363 (132328 bytes; 0 MB) allocated, 2253 (126168 bytes; 0 MB) used
Player Count: 1 / 8; [EntityPlayerMP['Player182'/214, l='New World', x=-260.10, y=65.00, z=249.63]]
Type: Integrated Server (map_client.txt)
Is Modded: Definitely; Client brand changed to 'fml,forge'

 

Thanks!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • i managed to fix it by reinstalling the modpack and re-add all the extra mods I've had previously.
    • Ah, it appears I spoke too soon, I still need a little help here. I now have the forceloading working reliably.  However, I've realized it's not always the first tick that loads the entity.  I've seen it take anywhere from 2-20ish to actually go through, in which time my debugging has revealed that the chunk is loaded, but during which time calling  serverLevelIn.getEntity(uuidIn) returns a null result.  I suspect this has to do with queuing and how entities are loaded into the game.  While not optimal, it's acceptable, and I don't think there's a whole ton I can do to avoid it. However, my concern is that occasionally teleporting an entity in this manner causes a lag spike.  It's not every time and gives the appearance of being correlated with when other chunks are loading in.  It's also not typically a long spike, but can last a second or two, which is less than ideal.  The gist of how I'm summoning is here (although I've omitted some parts that weren't relevant.  The lag occurs before the actual summon so I'm pretty confident it's the loading, and not the actual summon call). ChunkPos chunkPos = new ChunkPos(entityPosIn); if (serverLevelIn.areEntitiesLoaded(chunkPos.toLong())) { boolean isSummoned = // The method I'm using for actual summoning is called here. Apart from a few checks, the bulk of it is shown later on. if (isSummoned) { // Code that runs here just notifies the player of the summon, clears it from the queue, and removes the forceload } } else { // I continue forcing the chunk until the summon succeeds, to make sure it isn't inadvertently cleared ForgeChunkManager.forceChunk(serverLevelIn, MODID, summonPosIn, chunkPos.x, chunkPos.z, true, true); } The summon code itself uses serverLevelIn.getEntity(uuidIn) to retrieve the entity, and moves it as such.  It is then moved thusly: if (entity.isAlive()) { entity.moveTo(posIn.getX(), posIn.getY(), posIn.getZ()); serverLevelIn.playSound(null, entity, SoundEvents.ENDERMAN_TELEPORT, SoundSource.NEUTRAL, 1.0F, 1.0F); return true; } I originally was calling .getEntity() more frequently and didn't have the check for whether or not entities were loaded in place to prevent unnecessary code calls, but even with those safety measures in place, the lag still persists.  Could this just be an issue with 1.18's lack of optimization in certain areas?  Is there anything I can do to mitigate it?  Is there a performance boosting mod I could recommend alongside my own to reduce the chunk loading lag? At the end of the day, it does work, and I'm putting measures in place to prevent players from abusing the system to cause lag (i.e. each player can only have one queued summon at a time-- trying to summon another replaces the first call).  It's also not an unacceptable level of lag, IMO, given the infrequency of such calls, and the fact that I'm providing the option to toggle off the feature if server admins don't want it used.  However, no amount of lag is ideal, so if possible I'd love to find a more elegant solution-- or at least a mod recommendation to help improve it. Thanks!
    • When i start my forge server its on but when i try to join its come a error Internal Exception: java.lang.OutOfMemoryError: Requested array size exceeds VM limit Server infos: Linux Minecraft version 1.20.1 -Xmx11G -Xms8G
    • Also add the latest.log from your logs-folder
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.