diff --git a/client/src/test/scala/hexacraft/client/FakeBlockTextureLoader.scala b/client/src/test/scala/hexacraft/client/FakeBlockTextureLoader.scala index 40c4591a..5af327b9 100644 --- a/client/src/test/scala/hexacraft/client/FakeBlockTextureLoader.scala +++ b/client/src/test/scala/hexacraft/client/FakeBlockTextureLoader.scala @@ -1,7 +1,15 @@ package hexacraft.client import hexacraft.renderer.PixelArray +import hexacraft.util.Result + +import java.io.FileNotFoundException class FakeBlockTextureLoader extends BlockTextureLoader: - override def load(squareTextureNames: Seq[String], triTextureNames: Seq[String]): BlockTextureLoader.LoadedImages = - BlockTextureLoader.LoadedImages(Seq(PixelArray(Array.fill(32 * 32)(0), false)), Map.empty.withDefault(_ => 0)) + override def load( + squareTextureNames: Seq[String], + triTextureNames: Seq[String] + ): Result[BlockTextureLoader.LoadedImages, FileNotFoundException] = + Result.Ok( + BlockTextureLoader.LoadedImages(Seq(PixelArray(Array.fill(32 * 32)(0), false)), Map.empty.withDefault(_ => 0)) + )