Skip to content

Commit

Permalink
Re-enabled the 'fake' generator, restoring compatibility with Streams.
Browse files Browse the repository at this point in the history
  • Loading branch information
whichonespink44 committed Jul 11, 2017
1 parent e100a34 commit afaeca7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/rtg/world/WorldTypeRTG.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public IChunkGenerator getChunkGenerator(@Nonnull World world, String generatorO
{
if (DimensionManagerRTG.isValidDimension(world.provider.getDimension())) {

//if (chunkProvider == null) {
if (chunkProvider == null) {
chunkProvider = new ChunkProviderRTG(world, world.getSeed());
RTG.instance.runOnNextServerCloseOnly(clearProvider(chunkProvider));

Expand All @@ -75,13 +75,13 @@ public IChunkGenerator getChunkGenerator(@Nonnull World world, String generatorO
Logger.debug("WorldTypeRTG#getChunkGenerator() returning ChunkProviderRTG");

return chunkProvider;
//}
}

// return a "fake" provider that won't decorate for Streams
//ChunkProviderRTG result = new ChunkProviderRTG(world, world.getSeed());
//result.isFakeGenerator();
ChunkProviderRTG result = new ChunkProviderRTG(world, world.getSeed());
result.isFakeGenerator();

//return result;
return result;

// no server close because it's not supposed to decorate
//return chunkProvider;
Expand Down

0 comments on commit afaeca7

Please sign in to comment.