Advertisement
marcopolo1613

Untitled

May 26th, 2013
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.83 KB | None | 0 0
  1.     * Decorates the world. Calls code that was formerly (pre-1.8) in ChunkProviderGenerate.populate
  2.      */
  3.     public void decorate(World par1World, Random par2Random, int par3, int par4)
  4.     {
  5.         if (this.currentWorld != null)
  6.         {
  7.             throw new RuntimeException("Already decorating!!"); /* <--- this normally crashes the game, so i remove
  8.                                 This works fine for SP but SMP has a cow and doesnt
  9.                                 generate all its ore */
  10.         }
  11.         else
  12.         {
  13.             this.currentWorld = par1World; // give its something not null
  14.             this.randomGenerator = par2Random;
  15.             this.chunk_X = par3;
  16.             this.chunk_Z = par4;
  17.             this.decorate(); // generate
  18.             this.currentWorld = null;
  19.             this.randomGenerator = null; // make it null again
  20.         }
  21.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement