SgtPunishment / Soul-Shards-The-Old-Ways

Fan Continuation of the amazing Soul Shards Reborn Mod by MozeIntel
Other
9 stars 7 forks source link

Fix for spawning Mobs (Entity Initilialization) #46

Closed wilkemeyer closed 8 years ago

wilkemeyer commented 9 years ago

This will fix spawning mobs from other mods that may have sub-types per entity class ... such as MoCreatures.

In my case i wondered why an Ogre Soulshard would just spawn "Green Ogre's" ..

After comparing the spawn-logic with MFR's Autospawner code, i saw that the Soulcage won't call onSpawnWithEgg() (don't be confused by the method's name.. :/)

For MFR's Code See: https://github.com/skyboy/MineFactoryReloaded/blob/master/src/powercrystals/minefactoryreloaded/tile/machine/TileEntityAutoSpawner.java#L171