Skip to content

Commit

Permalink
Moved cape reg into a thread in case of network issues causing slowdown
Browse files Browse the repository at this point in the history
  • Loading branch information
mmdanggg2 committed Mar 10, 2021
1 parent e9ab46b commit cc52c10
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/mmdanggg2/doge/client/ClientDogeModEvent.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import mmdanggg2.doge.client.gui.MiningRigScreen;
import mmdanggg2.doge.client.renderer.ShibaRender;
import mmdanggg2.doge.entity.DogeProjectile;
import mmdanggg2.doge.entity.ShibaEntity;
import mmdanggg2.doge.init.DogeContainerTypes;
import mmdanggg2.doge.init.DogeEntityTypes;
import mmdanggg2.doge.util.DogeLogger;
Expand All @@ -14,7 +13,6 @@
import net.minecraft.client.renderer.entity.EntityRenderer;
import net.minecraft.client.renderer.entity.EntityRendererManager;
import net.minecraft.client.renderer.entity.SpriteRenderer;
import net.minecraft.entity.ai.attributes.GlobalEntityTypeAttributes;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.client.registry.IRenderFactory;
Expand Down Expand Up @@ -43,8 +41,10 @@ public EntityRenderer<? super DogeProjectile> createRenderFor(EntityRendererMana
DogeLogger.logDebug("Registered ContainerType Screens");
});

DevCapes capesInstance = DevCapes.getInstance();
capesInstance.registerConfig("http://www.mmdanggg2.co.uk/doge/capeConfig.json");
new Thread(()-> {
DevCapes capesInstance = DevCapes.getInstance();
capesInstance.registerConfig("http://www.mmdanggg2.co.uk/doge/capeConfig.json");
}, "DogeCapeRegistration").start();
}

}

0 comments on commit cc52c10

Please sign in to comment.