From 1707b3b64a37f5fe7bd5d9a7feece1976f18dad4 Mon Sep 17 00:00:00 2001 From: Martin Jakobsson Date: Thu, 26 Dec 2024 01:51:39 +0100 Subject: [PATCH] Fixed broken test --- .../hexacraft/client/FakeBlockTextureLoader.scala | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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)) + )