From 815b98fd12e39bc0273abc6480cdc130bfd5db7b Mon Sep 17 00:00:00 2001 From: BenCheung0422 <74168521+BenCheung0422@users.noreply.github.com> Date: Fri, 27 Sep 2024 16:41:53 +0800 Subject: [PATCH] Remove hardcoded restriction to corner rendering For both `GrassTile` and `SandTile` --- src/client/java/minicraft/level/tile/GrassTile.java | 2 +- src/client/java/minicraft/level/tile/SandTile.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/java/minicraft/level/tile/GrassTile.java b/src/client/java/minicraft/level/tile/GrassTile.java index 4e66b4118..b0e78a21d 100644 --- a/src/client/java/minicraft/level/tile/GrassTile.java +++ b/src/client/java/minicraft/level/tile/GrassTile.java @@ -15,7 +15,7 @@ public class GrassTile extends Tile { private static final SpriteAnimation sprite = new SpriteAnimation(SpriteType.Tile, "grass") - .setConnectionChecker((level, x, y, tile, side) -> !side || tile.connectsToGrass(level, x, y)) + .setConnectionChecker((level, x, y, tile, side) -> tile.connectsToGrass(level, x, y)) .setSingletonWithConnective(true); protected GrassTile(String name) { diff --git a/src/client/java/minicraft/level/tile/SandTile.java b/src/client/java/minicraft/level/tile/SandTile.java index 960dcde72..75305e083 100644 --- a/src/client/java/minicraft/level/tile/SandTile.java +++ b/src/client/java/minicraft/level/tile/SandTile.java @@ -18,7 +18,7 @@ public class SandTile extends Tile { private static SpriteAnimation sprite = new SpriteAnimation(SpriteType.Tile, "sand") - .setConnectionChecker((level, x, y, tile, side) -> !side || tile.connectsToSand(level, x, y)) + .setConnectionChecker((level, x, y, tile, side) -> tile.connectsToSand(level, x, y)) .setSingletonWithConnective(true); protected SandTile(String name) {