From f29c5d9c8a25d1271b51203f0a481fc33f08d564 Mon Sep 17 00:00:00 2001 From: raven Date: Sat, 21 Mar 2026 14:15:43 -0500 Subject: /tp command --- server/coords.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'server/coords.go') diff --git a/server/coords.go b/server/coords.go index ebe71c9..7add606 100644 --- a/server/coords.go +++ b/server/coords.go @@ -17,6 +17,10 @@ type entityPos struct { X, Y, Z entityCoord } +func fromFloat(f float64) entityCoord { + return entityCoord(f * 32) +} + func entityToBlock(pos entityPos) blockPos { return blockPos { blockCoord(pos.X >> 5), -- cgit v1.2.3