Models spawned with ModelEngine API disappearing
I am having a number of issues with spawning models via the API, everything worked in Meg3, these issues arose once I upgraded to Meg4.
The first of which is to do with the models flat out disappearing once I spawn them as shown in the below video. This occurrence is seemingly random (I cannot discern a pattern) and produces no errors in the console. I can, however, say that this issue does not occur if I do not use
mountManager.setCanDrive(true), preventing me from driving.
As shown in the next video, when not being allowed to mount the vehicles, they do not disappear, however, when I kill them, they become invincible ghosts (I have set the base entity to invisible hence why you cannot see them) but when they are visible, they will continue to fly around as regular phantoms, unable to be hit.
Finally, as shown in the final two videos, when mounting the vehicle, it has the seemingly stranger tendency to occasionally teleport me 0, 0, 0, with or without the vehicle (if it disappears according to the initial issue).
We are using Purpur 1.20.1 build 2053.
Here is the code we are using to spawn the entities https://paste.learnspigot.com/xetubileru.kotlin It should also be noted that all videos above were recorded using the default movement controllers.
On a final note, I didn't get much of a chance to test this with multiple people, but for what I did, there were times when I could not see certain models which the other member could and vice versa.
Hopefully that covers everything, thank you.