Johni0702 / BetterPortals

A Minecraft Mod which adds see-through portals usable without any loading screen
GNU General Public License v3.0
106 stars 15 forks source link

Dead fake player in another dimension causes crashes #56

Open DarianLStephens opened 5 years ago

DarianLStephens commented 5 years ago

Somehow, one of my players managed to kill the player inside the nether. Now the view through the portal is shaking (As tends to happen during death) and entering the Nether crashes their game with a NullPointerException.

Johni0702 commented 5 years ago

I'm not surprised everything broken when the camera entity died, that's never supposed to happen so none of the other code will be equipped to deal with it. I'd be much more interested in how they managed to kill it though, it's in spectator mode and should be invulnerable.

DarianLStephens commented 5 years ago

It was a strange circumstance, but this is what I remember: We went through to the Nether, travelled 100 blocks or so, and built another portal (after messing about with obsidian generation by me breaking the portal in the Nether and him relighting it in the Overworld). Through that portal, he was very quickly killed by mobs on the other side, and reported his game freezing a few seconds after leaving the portal (Enough to get a few hits in on the mobs) before they surrounded and killed him. Then, he said that he found himself back in the Nether at his death Overworld coords for a few moments (He found a Nether Fortress at those coords), but his connection to the server kept timing out whenever he tried to respawn. I restarted the server and he was able to connect again and respawn at the appropriate place in the Overworld, but his Nether Portal view was glitchy like that, and trying to travel through made his game outright crash with the error 'Error: java.lang.NullPointerException: Unexpected error'.

If it wasn't due to this sequence of events, perhaps one of the Bewitchment mobs was able to kill it somehow for some reason.

Johni0702 commented 5 years ago

Which BP version were you using when this happened? I fixed a few death/respawn related issues in 0.1.3. Just want to make sure it's not one of those.

DarianLStephens commented 5 years ago

I updated to 0.1.4 just before I created the world. On the topic of damage, the view through portals will also be weirdly static while the main camera tilts when taking damage.