mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-18 19:39:22 +00:00
Fixed Entity extended properties init order. Closes #1532
This commit is contained in:
1 parent
6bb769268f
commit
d6d4735a70
2 files changed
+11
-24
No files matched your search
@@ -293,20 +293,6 @@ public class ForgeEventFactory
|
||||
return event.name;
|
||||
}
|
||||
|
||||
public static HashMap<String, IExtendedEntityProperties> onEntityConstructing(Entity entity, World world)
|
||||
{
|
||||
HashMap<String, IExtendedEntityProperties> ret = new HashMap<String, IExtendedEntityProperties>();
|
||||
|
||||
MinecraftForge.EVENT_BUS.post(new EntityEvent.EntityConstructing(entity));
|
||||
|
||||
for (IExtendedEntityProperties props : ret.values())
|
||||
{
|
||||
props.init(entity, world);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static int onItemExpire(EntityItem entity, ItemStack item)
|
||||
{
|
||||
if (item == null) return -1;
|
||||
|
||||
Reference in new issue
Block a user