From 313d7bbc115b6f2a3e320e305ee355fe75dbe879 Mon Sep 17 00:00:00 2001 From: Take Weiland Date: Sun, 20 Mar 2016 15:02:28 +0100 Subject: [PATCH] Fix EntityList.func_188429_b not supporting mod-entities, fixes spawn eggs, fixes #2581 --- .../net/minecraft/entity/EntityList.java.patch | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/patches/minecraft/net/minecraft/entity/EntityList.java.patch b/patches/minecraft/net/minecraft/entity/EntityList.java.patch index 479c2500d..968ebb611 100644 --- a/patches/minecraft/net/minecraft/entity/EntityList.java.patch +++ b/patches/minecraft/net/minecraft/entity/EntityList.java.patch @@ -38,3 +38,13 @@ } else { +@@ -202,7 +214,8 @@ + + public static Entity func_188429_b(String p_188429_0_, World p_188429_1_) + { +- return func_75616_a(func_180122_a(p_188429_0_), p_188429_1_); ++ Entity e = func_75620_a(p_188429_0_, p_188429_1_); // Forge: Support entities without global ID ++ return e == null ? func_75620_a("Pig", p_188429_1_) : e; + } + + public static int func_75619_a(Entity p_75619_0_)