Skip to content

Commit

Permalink
chore: generics
Browse files Browse the repository at this point in the history
  • Loading branch information
klikli-dev committed Oct 8, 2024
1 parent dd0187b commit e871a21
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public SpiritRenderable(EntityType<T> spiritType) {
@Override
public void render(GuiGraphics draw, int x, int y, float delta) {
if (this.spiritEntity == null || this.spiritEntity.get() == null)
this.spiritEntity = new WeakReference(this.spiritType.create(Minecraft.getInstance().level));
this.spiritEntity = new WeakReference<>(this.spiritType.create(Minecraft.getInstance().level));


SpiritGui.drawEntityToGui(draw, x + 8, (int) (y + (this.spiritEntity.get().getEyeHeight() * 15) + 5), 15, 1, 1, this.spiritEntity.get());
Expand Down

0 comments on commit e871a21

Please sign in to comment.