From 5dbada818b4e95ac904a80ab4052182057055387 Mon Sep 17 00:00:00 2001 From: jchung01 Date: Wed, 28 Aug 2024 16:30:02 -0700 Subject: [PATCH 1/2] Support ExtendedBlockStates in block overlay fix --- .../bugfixes/blocks/blockoverlay/UTBlockOverlay.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/mod/acgaming/universaltweaks/bugfixes/blocks/blockoverlay/UTBlockOverlay.java b/src/main/java/mod/acgaming/universaltweaks/bugfixes/blocks/blockoverlay/UTBlockOverlay.java index 370cd2d1..33049bac 100644 --- a/src/main/java/mod/acgaming/universaltweaks/bugfixes/blocks/blockoverlay/UTBlockOverlay.java +++ b/src/main/java/mod/acgaming/universaltweaks/bugfixes/blocks/blockoverlay/UTBlockOverlay.java @@ -66,6 +66,8 @@ public static void renderNearbyBlocks(float partialTicks) bufferBuilder.setTranslation(-x, -(y - player.getEyeHeight()), -z); } IBlockState state1 = state.getActualState(world, pos); + // Call extendedBlockState if it has one: see BlockRendererDispatcher#renderBlock() + state1 = state.getBlock().getExtendedState(state1, world, pos); mc.getBlockRendererDispatcher().getBlockModelRenderer().renderModel(world, mc.getBlockRendererDispatcher().getModelForState(state1), state1, pos, bufferBuilder, false); }); From 20c4cbbbbf04c9eb8238ec55aa8aa150ab0341c4 Mon Sep 17 00:00:00 2001 From: jchung01 Date: Wed, 28 Aug 2024 16:33:43 -0700 Subject: [PATCH 2/2] Remove now unnecessary blacklist entry --- .../acgaming/universaltweaks/config/UTConfigBugfixes.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/java/mod/acgaming/universaltweaks/config/UTConfigBugfixes.java b/src/main/java/mod/acgaming/universaltweaks/config/UTConfigBugfixes.java index a9491b6e..e1f3b7cc 100644 --- a/src/main/java/mod/acgaming/universaltweaks/config/UTConfigBugfixes.java +++ b/src/main/java/mod/acgaming/universaltweaks/config/UTConfigBugfixes.java @@ -112,10 +112,7 @@ public static class BlockOverlayCategory "Excludes blocks from the block overlay bugfix", "Syntax: modid:block" }) - public String[] utBlockOverlayBlacklist = new String[] - { - "appliedenergistics2:drive" - }; + public String[] utBlockOverlayBlacklist = new String[] {}; @Config.Name("[3] Whitelist") @Config.Comment