From cd72eae378cd8067387959083b318793078222e7 Mon Sep 17 00:00:00 2001 From: Rosia E Evans Date: Sun, 21 Apr 2024 16:49:02 +0100 Subject: [PATCH] fixes bug --- core/src/com/monjaro/gamejam/main/ShopeUi.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/src/com/monjaro/gamejam/main/ShopeUi.java b/core/src/com/monjaro/gamejam/main/ShopeUi.java index d7d5a29..a18dea4 100644 --- a/core/src/com/monjaro/gamejam/main/ShopeUi.java +++ b/core/src/com/monjaro/gamejam/main/ShopeUi.java @@ -36,6 +36,10 @@ public class ShopeUi extends Actor{ List shope = game.getShope(); for (int i = 0; i < shope.size(); i++) { Face face = shope.get(i); + + if (face == null) + continue; + face.setTransform(new Transform(((Gdx.graphics.getWidth()/4)*i)+(Gdx.graphics.getWidth()/4), Gdx.graphics.getHeight()/8, 64, 64)); face.render(batch);