BlakeBr0 / IronJetpacks

Adds fully customizable FE powered jetpacks!
https://blakesmods.com/iron-jetpacks
MIT License
13 stars 21 forks source link

Memory Leak In getArmorModel #26

Closed Tfarcenim closed 3 years ago

Tfarcenim commented 4 years ago

Describe the bug A new model is created every frame to render while the Jetpack is worn instead of reusing an existing one.

To Reproduce Steps to reproduce the behavior: Step 1: Equip jetpack Step 2: watch as 100s of jetpack models are created every second

Expected behavior Reusing an existing model

Screenshots / Scripts / Logs Here is the problem code: https://github.com/BlakeBr0/IronJetpacks/blob/1.16/src/main/java/com/blakebr0/ironjetpacks/item/JetpackItem.java#L196

Versions (please complete the following information):