Skip to content
This repository has been archived by the owner on Oct 26, 2023. It is now read-only.

Commit

Permalink
Fixed: Crash when generating or entering a new world.
Browse files Browse the repository at this point in the history
  • Loading branch information
Enfu Zhang committed Jul 26, 2017
1 parent b7d8a99 commit cc69588
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
import com.github.nekomeowww.customdrones.drone.DroneAppearance;
import com.github.nekomeowww.customdrones.drone.DroneInfo;
import com.github.nekomeowww.customdrones.entity.EntityDrone;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

public class DroneModels
{
Expand Down Expand Up @@ -57,20 +59,22 @@ public ModelDrone getModelOrDefault(EntityDrone drone)

public static void init(RenderManager rm)
{
if(instance == null){
return;
}
//if(instance == null){
// return;
//}
if ((instance == null) || (instance.rm != rm)) {
instance = new DroneModels(rm);
}
}


static
{
//init();
init(Minecraft.getMinecraft().getRenderManager());
}


public static class ModelProp
{
public ModelDrone model;
Expand Down

0 comments on commit cc69588

Please sign in to comment.