From 806eedf3b9b7c22099af88b5bc45342b194fb274 Mon Sep 17 00:00:00 2001 From: Nicholas Novak <34256932+NickyBoy89@users.noreply.github.com> Date: Sun, 10 Dec 2023 21:27:05 -0800 Subject: [PATCH] fix: Fixed the storage server interface to meet the proper types --- storage/storage_server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/storage/storage_server.go b/storage/storage_server.go index 160db1b..3036e98 100644 --- a/storage/storage_server.go +++ b/storage/storage_server.go @@ -11,14 +11,14 @@ type StorageServer interface { SetStorageRoot(path string) // Block-level interactions - ChangeBlock(targetState world.BlockID, world_position world.BlockPos) error + ChangeBlock(pos world.BlockPos, targetState world.BlockID) error ReadBlockAt(pos world.BlockPos) (world.BlockID, error) // Region-level interactions ChangeBlockRange(targetState world.BlockID, start, end world.BlockPos) error // Network-level operations - ReadChunkAt(pos world.ChunkPos) error + ReadChunkAt(pos world.ChunkPos) (world.ChunkData, error) } var (