Compact Solars

Compact Solars

19M Downloads

[1.8.9] Solar Helmets not showing in SMP when adding Dedicate Server Check

KKyang opened this issue ยท 1 comments

commented

Hi, I'm playing IC2 in 1.8.9 in order to play with BuildCraft.

I'd like to use the compactsolars addon but I can't see any release version of 1.8.9, so I've modified the code to make it work in dedicated server. (KKyang@777a645)

public static void buildHats() 
{ 
    for (CompactSolarType typ : values())  
    {  
        typ.buildHat();  
        if(MinecraftServer.getServer().isDedicatedServer())  
            return;  
        typ.buildItemRenders();  
    }  
}  

After the modification, the java.io.NoSuchMethodError disappeared. However, I can only see all the helmets in single player mode. In the dedicated server, I only see LV solar helmet.

Is the other helmets being disabled in multiplayer or did I just block FML from adding helmets by adding a dedicated server check? Thanks!

commented

Oh, I'm super stupid. I used return inside a for loop.