mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-17 11:05:40 +00:00
Removed event bus call from the ModelLoader
This commit is contained in:
1 parent
83ca72bef2
commit
0e34510032
2 files changed
+3
-4
No files matched your search
@@ -284,6 +284,7 @@ public class ForgeHooksClient
|
||||
public static void onTextureStitchedPre(TextureMap map)
|
||||
{
|
||||
MinecraftForge.EVENT_BUS.post(new TextureStitchEvent.Pre(map));
|
||||
ModelLoader.White.instance.register(map);
|
||||
}
|
||||
|
||||
public static void onTextureStitchedPost(TextureMap map)
|
||||
|
||||
@@ -77,7 +77,6 @@ public class ModelLoader extends ModelBakery
|
||||
super(manager, map, shapes);
|
||||
VanillaLoader.instance.setLoader(this);
|
||||
ModelLoaderRegistry.clearModelCache();
|
||||
MinecraftForge.EVENT_BUS.register(White.instance);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -484,10 +483,9 @@ public class ModelLoader extends ModelBakery
|
||||
return false;
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
public void handleStitchPre(TextureStitchEvent.Pre event)
|
||||
public void register(TextureMap map)
|
||||
{
|
||||
event.map.setTextureEntry(White.loc.toString(), White.instance);
|
||||
map.setTextureEntry(White.loc.toString(), White.instance);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user