gavinsmod / gavinsextensiblemod

A Minecraft mod with a lot of cool features.
MIT License
29 stars 1 forks source link

RenderUtils broken on 1.20.6 #75

Closed GT3CH1 closed 5 months ago

GT3CH1 commented 5 months ago

Describe the bug RenderUtils broken on 1.20.6

To Reproduce Steps to reproduce the behavior:

  1. Start game
  2. Open up mob esp menu
  3. crash

Expected behavior Able to select mobs from the esp/tracer menu.

Screenshots/Video If applicable, add screenshots to help explain your problem.

Version Info (please complete the following information):

Additional context Add any other context about the problem here.

GT3CH1 commented 5 months ago

This was caused by the following line (TracerEspConfig L161):

        addMob(spawnEggItem.getEntityType(null))

We needed to use something like:

        addMob(spawnEggItem.getEntityType(spawnEggItem.defaultStack))
GT3CH1 commented 5 months ago

There was also an issue with getEntityBox in RenderUtils.kt. It appears that we can now access the entity's box by using return e.boundingBox instead, thus deprecating this method. There was also another minor issue with using matrices but was quickly fixed.