From d5acfa3f5c708cd7db5df8078e35a608afe0b52d Mon Sep 17 00:00:00 2001 From: yoyosource Date: Thu, 16 May 2024 15:42:34 +0200 Subject: [PATCH] Fix DesignEndStone --- .../bausystem/features/design/endstone/DesignEndStone.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/design/endstone/DesignEndStone.java b/BauSystem_Main/src/de/steamwar/bausystem/features/design/endstone/DesignEndStone.java index 0fa990aa..8cb855e8 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/design/endstone/DesignEndStone.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/design/endstone/DesignEndStone.java @@ -64,7 +64,7 @@ public class DesignEndStone { calc(minX, minY, minZ, minX, maxY, maxZ, 1, 0, 0, maxX - minX); calc(maxX, minY, minZ, maxX, maxY, maxZ, -1, 0, 0, maxX - minX); // calc(minX, minY, minZ, maxX, minY, maxZ, 0, 1, 0, maxY - minY); - calc(minX, maxY, minZ, maxX, maxY, maxZ, 0, -1, 0, maxY - minY); + calc(minX, maxY, minZ, maxX, maxY, maxZ, 0, -1, 0, maxY - minY + 1); } private void calc(int minX, int minY, int minZ, int maxX, int maxY, int maxZ, int dirX, int dirY, int dirZ, int steps) { @@ -76,7 +76,7 @@ public class DesignEndStone { int cy = y + step * dirY; int cz = z + step * dirZ; Material material = WORLD.getBlockAt(cx, cy, cz).getType(); - if (material == Material.END_STONE || material == Material.END_STONE_BRICKS || material == Material.END_STONE_BRICK_SLAB || material == Material.END_STONE_BRICK_STAIRS || material == Material.END_STONE_BRICK_WALL) { + if (material.getBlastResistance() > 9) { Location location = new Location(WORLD, cx + 0.5, cy, cz + 0.5); if (locations.contains(location)) break; RFallingBlockEntity entity = new RFallingBlockEntity(entityServer, location, Material.RED_STAINED_GLASS);