Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- * Decorates the world. Calls code that was formerly (pre-1.8) in ChunkProviderGenerate.populate
- */
- public void decorate(World par1World, Random par2Random, int par3, int par4)
- {
- if (this.currentWorld != null)
- {
- throw new RuntimeException("Already decorating!!"); /* <--- this normally crashes the game, so i remove
- This works fine for SP but SMP has a cow and doesnt
- generate all its ore */
- }
- else
- {
- this.currentWorld = par1World; // give its something not null
- this.randomGenerator = par2Random;
- this.chunk_X = par3;
- this.chunk_Z = par4;
- this.decorate(); // generate
- this.currentWorld = null;
- this.randomGenerator = null; // make it null again
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement