Skip to content

Commit

Permalink
Fixed broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
Martomate committed Dec 26, 2024
1 parent 60453a6 commit 1707b3b
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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))
)

0 comments on commit 1707b3b

Please sign in to comment.