Skip to content

Commit

Permalink
Merge pull request #20 from C0mputery/1.20
Browse files Browse the repository at this point in the history
fix(mimic): update MimicTurtleRenderTrick.kt to fix mimic beacon rendering crash.
  • Loading branch information
SirEdvin authored Feb 3, 2024
2 parents 773e623 + abab0ff commit ce17697
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ object MimicTurtleRenderTrick : TurtleRenderTrick {
DataStorageObjects.MimicExtraData[upgradeData] ?: emptyCompoundTag,
),
)
// Yep, this is check for SAME OBJECT
// Yep, this is a check for SAME OBJECT
if (entity !== dummyBlockEntity) {
entity.level = turtle.level
minecraft.blockEntityRenderDispatcher.render(entity, partialTicks, transform, buffers)
entity.level = null
// entity.level = null; Setting this to null causes a crash when rendering a beacon.
}
}
}
Expand Down

0 comments on commit ce17697

Please sign in to comment.