EntityManagement [LAGGY]

Hello i whant to create Holograms for Sponge 3.1.0 because of Mod Compatibility i cant update

I Spawn a Custom Armourstand
if a Chunk load / unload i do this

public void load(LoadChunkEvent loaded){
	if(!loaded.getTargetChunk().getWorld().equals(pos.getExtent())){
		return;
	}
	if(loaded.getTargetChunk().containsBlock(pos.getBlockPosition())){
		spawn();
	}
}
public void unload(UnloadChunkEvent loaded){
	loaded.getTargetChunk().getEntities().clear();
	for(Entity e:loaded.getTargetChunk().getEntities()){
		if(e instanceof NMSArmorStand){
			((NMSArmorStand)e).setDead();
		}
	}
}

Spawn() creates a new Armourstand on the given Position.
If i go ingame, Spawn the hologram, leave and rejoin the Hologram
is on the correct position for 4 second, than it jumps to 0 0 0 of the Chunk

Support for api 3 is pretty much non existent. And I can not remeber it. Plus it was unstable.

But why are you checking for NMSArmorStand? Why not check for sponges armorstand and then do ArmorStand.remove();

If what you are describing is a bug in Sponge, then it will not get fixed in an API 3 version. Whatever you’re talking about is almost definitely fixed in the newer versions. Exactly like the last time you posted.

I Fixed it i do not know why but to set the Location for and after Spawning fixed the Problem

1 Like

Out of curiosity, what mod(s) doesn’t(don’t) work with latest/later sponge versions?

The fix is to set the location again after spawning if I recall correctly.
I had this issue on API4? maybe early API5?
Unsure if it still persists to date.

Flansmod still 1.8

No u need Both in my case befor and after

1 Like