From b4da24641ca1f379d97f755753c1577295de82e4 Mon Sep 17 00:00:00 2001 From: IThundxr Date: Sat, 10 Aug 2024 09:03:43 -0400 Subject: [PATCH] Fix schematic renderers not correctly being invalidated on resource reloads (#6801) * Fix #6726 * move renderer ticking call to be earlier --- .../create/content/schematics/client/SchematicHandler.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/simibubi/create/content/schematics/client/SchematicHandler.java b/src/main/java/com/simibubi/create/content/schematics/client/SchematicHandler.java index 0696509d1..b56bab3b4 100644 --- a/src/main/java/com/simibubi/create/content/schematics/client/SchematicHandler.java +++ b/src/main/java/com/simibubi/create/content/schematics/client/SchematicHandler.java @@ -97,6 +97,8 @@ public class SchematicHandler { if (activeSchematicItem != null && transformation != null) transformation.tick(); + renderers.forEach(SchematicRenderer::tick); + LocalPlayer player = mc.player; ItemStack stack = findBlueprintInHand(player); if (stack == null) { @@ -117,7 +119,6 @@ public class SchematicHandler { if (!active) return; - renderers.forEach(SchematicRenderer::tick); if (syncCooldown > 0) syncCooldown--; if (syncCooldown == 1) @@ -160,7 +161,7 @@ public class SchematicHandler { BlockPos pos; pos = BlockPos.ZERO; - + try { schematic.placeInWorld(w, pos, pos, placementSettings, w.getRandom(), Block.UPDATE_CLIENTS); for (BlockEntity blockEntity : w.getBlockEntities())