mirror of
https://github.com/Creators-of-Create/Create.git
synced 2025-01-12 23:37:29 +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)
|
||||||
|
@ -160,7 +161,7 @@ public class SchematicHandler {
|
||||||
BlockPos pos;
|
BlockPos pos;
|
||||||
|
|
||||||
pos = BlockPos.ZERO;
|
pos = BlockPos.ZERO;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
schematic.placeInWorld(w, pos, pos, placementSettings, w.getRandom(), Block.UPDATE_CLIENTS);
|
schematic.placeInWorld(w, pos, pos, placementSettings, w.getRandom(), Block.UPDATE_CLIENTS);
|
||||||
for (BlockEntity blockEntity : w.getBlockEntities())
|
for (BlockEntity blockEntity : w.getBlockEntities())
|
||||||
|
|
Loading…
Reference in a new issue