Skip to content

Commit

Permalink
Don't try to get the sprite ahead of time
Browse files Browse the repository at this point in the history
  • Loading branch information
BluSpring committed Jul 26, 2023
1 parent 36b5a5f commit 3d3186b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public abstract class ModelBakeryInject implements ModelBakeryInjection {

@Shadow @Nullable private AtlasSet atlasSet;
@Unique
private final AtomicReference<Function<Material, TextureAtlasSprite>> sprites = new AtomicReference<>(this.atlasSet::getSprite);
private final AtomicReference<Function<Material, TextureAtlasSprite>> sprites = new AtomicReference<>();

@Inject(method = "uploadTextures", at = @At("TAIL"))
public void kilt$resetGetSprite(TextureManager resourceManager, ProfilerFiller profiler, CallbackInfoReturnable<AtlasSet> cir) {
Expand Down

0 comments on commit 3d3186b

Please sign in to comment.