mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-20 20:22:33 +00:00
Fix duplicate loader registration on resource reload
This commit is contained in:
1 parent
d85dbcfbf8
commit
6a64ceb169
1 file changed
+4
-3
@@ -41,9 +41,10 @@ public final class ModelHandler {
|
||||
static boolean registeredModels = false;
|
||||
|
||||
public static void registerModels(ModelRegistryEvent evt) {
|
||||
registeredModels = true;
|
||||
|
||||
ModelLoaderRegistry.registerLoader(FloatingFlowerModel.Loader.ID, FloatingFlowerModel.Loader.INSTANCE);
|
||||
if (!registeredModels) {
|
||||
registeredModels = true;
|
||||
ModelLoaderRegistry.registerLoader(FloatingFlowerModel.Loader.ID, FloatingFlowerModel.Loader.INSTANCE);
|
||||
}
|
||||
ModelLoader.addSpecialModel(new ModelResourceLocation(LibMisc.MOD_ID + ":mana_gun_clip", "inventory"));
|
||||
ModelLoader.addSpecialModel(new ModelResourceLocation(LibMisc.MOD_ID + ":desu_gun", "inventory"));
|
||||
ModelLoader.addSpecialModel(new ModelResourceLocation(LibMisc.MOD_ID + ":desu_gun_clip", "inventory"));
|
||||
|
||||
Reference in new issue
Block a user