mirror of
https://github.com/Creators-of-Create/Create.git
synced 2025-01-27 13:28:00 +01:00
Fix schematic renderers not correctly being invalidated on resource reloads (#6801)
* Fix #6726 * move renderer ticking call to be earlier
This commit is contained in:
parent
fa4f5243bc
commit
b4da24641c
1 changed files with 3 additions and 2 deletions
|
@ -97,6 +97,8 @@ public class SchematicHandler {
|
||||||
if (activeSchematicItem != null && transformation != null)
|
if (activeSchematicItem != null && transformation != null)
|
||||||
transformation.tick();
|
transformation.tick();
|
||||||
|
|
||||||
|
renderers.forEach(SchematicRenderer::tick);
|
||||||
|
|
||||||
LocalPlayer player = mc.player;
|
LocalPlayer player = mc.player;
|
||||||
ItemStack stack = findBlueprintInHand(player);
|
ItemStack stack = findBlueprintInHand(player);
|
||||||
if (stack == null) {
|
if (stack == null) {
|
||||||
|
@ -117,7 +119,6 @@ public class SchematicHandler {
|
||||||
if (!active)
|
if (!active)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
renderers.forEach(SchematicRenderer::tick);
|
|
||||||
if (syncCooldown > 0)
|
if (syncCooldown > 0)
|
||||||
syncCooldown--;
|
syncCooldown--;
|
||||||
if (syncCooldown == 1)
|
if (syncCooldown == 1)
|
||||||
|
|
Loading…
Reference in a new issue