Skip to content

Commit

Permalink
fix Syncmatics not reloading
Browse files Browse the repository at this point in the history
  • Loading branch information
sakura-ryoko committed Nov 26, 2024
1 parent 0d9b207 commit 80d285f
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -318,14 +318,10 @@ public void preLoad(final SchematicPlacement schem) {
if (context != null && context.isStarted()) {
final UUID id = ((IIDContainer) schem).syncmatica$getServerId();
final ServerPlacement p = context.getSyncmaticManager().getPlacement(id);
if (isRendered(p)) {
if (p == null) { return; }
if (!isRendered(p)) {
final ServerPlacement adjusted = readVersionInfo(p, schem);
if (adjusted != null) {
rendering.put(adjusted, schem);
}
else {
rendering.put(p, schem);
}
rendering.put(Objects.requireNonNullElse(adjusted, p), schem);
DataManager.getSchematicPlacementManager().addSchematicPlacement(schem, false);
}
} else if (preLoadList != null) {
Expand Down

0 comments on commit 80d285f

Please sign in to comment.