mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-15 21:31:05 +00:00
fix fabric teleportation issues
This commit is contained in:
@@ -5,9 +5,7 @@ import com.dfsek.terra.api.platform.entity.Player;
|
|||||||
import com.dfsek.terra.api.platform.world.World;
|
import com.dfsek.terra.api.platform.world.World;
|
||||||
import com.dfsek.terra.fabric.world.FabricAdapter;
|
import com.dfsek.terra.fabric.world.FabricAdapter;
|
||||||
import com.dfsek.terra.fabric.world.handles.world.FabricWorldAccess;
|
import com.dfsek.terra.fabric.world.handles.world.FabricWorldAccess;
|
||||||
import com.dfsek.terra.fabric.world.handles.world.FabricWorldHandle;
|
|
||||||
import net.minecraft.entity.player.PlayerEntity;
|
import net.minecraft.entity.player.PlayerEntity;
|
||||||
import net.minecraft.server.world.ServerWorld;
|
|
||||||
import net.minecraft.text.LiteralText;
|
import net.minecraft.text.LiteralText;
|
||||||
|
|
||||||
public class FabricPlayer implements Player {
|
public class FabricPlayer implements Player {
|
||||||
@@ -40,6 +38,5 @@ public class FabricPlayer implements Player {
|
|||||||
@Override
|
@Override
|
||||||
public void setLocation(Location location) {
|
public void setLocation(Location location) {
|
||||||
delegate.teleport(location.getX(), location.getY(), location.getZ());
|
delegate.teleport(location.getX(), location.getY(), location.getZ());
|
||||||
delegate.moveToWorld((ServerWorld) ((FabricWorldHandle) location).getWorld());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user