mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-26 06:53:20 +00:00
Fixed Vinella mob spawning bug that prevented mobs from spawning on the top most chunk. Added new Block function to determine if a Mob can naturally spawn on the block. Add new hook to allow for special case handeling on natural entity spawn.
This commit is contained in:
1 parent
33a3f67225
commit
cbc9d73a9a
9 files changed
+203
-7
No files matched your search
@@ -11,6 +11,9 @@ import net.minecraft.src.forge.NetworkMod;
|
||||
*/
|
||||
public class mod_MinecraftForge extends NetworkMod
|
||||
{
|
||||
@MLProp(info = "Set to false to reproduce a vinella bug that prevents mobs from spawning on inverted half-slabs and inverted stairs.")
|
||||
public static boolean SPAWNER_ALLOW_ON_INVERTED = true;
|
||||
|
||||
@Override
|
||||
public String getVersion()
|
||||
{
|
||||
@@ -38,6 +41,5 @@ public class mod_MinecraftForge extends NetworkMod
|
||||
//Add 131 & 132 to C->S list
|
||||
((Set)ModLoader.getPrivateValue(Packet.class, null, 3)).add(131);
|
||||
((Set)ModLoader.getPrivateValue(Packet.class, null, 3)).add(132);
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user