Skip to content

Commit

Permalink
fix: fix use of registry to properly iterate over new jobs (#1077)
Browse files Browse the repository at this point in the history
  • Loading branch information
GaeaKat authored and klikli-dev committed Mar 11, 2024
1 parent 595db93 commit 1ad71be
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ public DefaultedJobEntityModel(ResourceLocation assetSubpath, boolean turnsHead,
this.entity_subpath = entity_subpath;
jobModels = new HashMap<>();
this.worker = this.buildModelData("worker");
for(var job: OccultismSpiritJobs.JOBS.getEntries()) {
SpiritJobFactory factory = job.get();
jobModels.put(job.getId().toString(), this.buildModelData(factory.client().modelID(),"_"));
for(var job: OccultismSpiritJobs.REGISTRY.entrySet()) {
SpiritJobFactory factory = job.getValue();
jobModels.put(job.getKey().location().toString(), this.buildModelData(factory.client().modelID(),"_"));
}
}

Expand Down

0 comments on commit 1ad71be

Please sign in to comment.