FabricTPA

FabricTPA

56.6k Downloads

Requesting teleport, dying, then changing dimensions causes the teleport to not change dimension

silversquirl opened this issue ยท 4 comments

commented

When a player dies, the entity is recreated. However, the entity attached to the TPARequest is not updated to the new entity, meaning its dimension is not updated when the player changes dimension.
However, as the two entities share the same network handler, the teleport() call still works and applies the coordinate change to the new player entity, without changing its dimension.

commented

Interesting, i currently don't have an idea of how i could fix this issue.
Also, this is seems super specific :P

commented

Simplest fix is probably to check the entity's removed field before teleporting.

commented

So i decided to finally check this out, as @spaceclouds42 suggested a possible fix.
But, i can't seem to re-create the problem you're having, could you give exact steps for reproducing?
Without being able to recreate it, i can't be sure the issue is fixed...

commented

should be fixed in v2.0.0