Advertisement
Marikc0

Untitled

Dec 11th, 2013
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.95 KB | None | 0 0
  1. package marikc0.optionals;
  2.  
  3. public class OreGenInfo {
  4.  
  5.     /*
  6.      * Set up minimums and maximums for Ore Generation parameters.
  7.      *
  8.      * Check the Configuration File and prevent any parameters from going out of bounds.
  9.      */
  10.    
  11.     // Anthracite Ore
  12.     public static int Anthracite_Size;
  13.     public static int Anthracite_Chance;
  14.     public static int Anthracite_Min;
  15.     public static int Anthracite_Max;
  16.        
  17.     if(ConfigHandler.Anthracite_Size > 15) { Anthracite_Size = 15; } else { Anthracite_Size = ConfigHandler.Anthracite_Size; }
  18.     if(ConfigHandler.Anthracite_Chance > 15) { Anthracite_Chance = 15; } else { Anthracite_Chance = ConfigHandler.Anthracite_Chance; }
  19.     if(ConfigHandler.Anthracite_Min > 50) { Anthracite_Min = 50; } else { Anthracite_Min = ConfigHandler.Anthracite_Min; }
  20.     if(ConfigHandler.Anthracite_Max > 200) { Anthracite_Max = 200; } else { Anthracite_Max = ConfigHandler.Anthracite_Max; }
  21.        
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement