You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, apparently, Gempire has been causing issues when certain mods have certain mobs existing in the world. For example, Alex's Mobs causes the game to crash when paired with Gempire because of a Bone Snake issue, and Ice and Fire crashes when trying to tick the Stone Statue mob.
As of right now, I tested Gempire without these mods enabled, and they work perfectly fine, but I'd really rather not have to keep disabling mods just to play with Gempire.
I've experienced this issue as well, both with Alex's Mobs as well as Ice and Fire funnily enough. The issue seems to be with the OnEntitySpawn event in EventHandler.java.
On lines 51 and 61 in EventHandler.java, there's if statements checking the mob category of the newly spawned entity. If those pass, then Gempire wrongly assumes that the newly spawned entity must extend from Mob, when in fact this is not guaranteed.
Since the code in question doesn't even have anything to run in the event that the newly spawned mob doesn't extend from Mob, line 50 should probably be changed to check that the entity is an instance of Mob and not LivingEntity.
So, apparently, Gempire has been causing issues when certain mods have certain mobs existing in the world. For example, Alex's Mobs causes the game to crash when paired with Gempire because of a Bone Snake issue, and Ice and Fire crashes when trying to tick the Stone Statue mob.
As of right now, I tested Gempire without these mods enabled, and they work perfectly fine, but I'd really rather not have to keep disabling mods just to play with Gempire.
Here's the crash report, in case you were curious
crash-2024-07-30_21.19.47-server.txt
The text was updated successfully, but these errors were encountered: