Fixed Bug in RiftGenerator
Fixed a small bug. DDProperties.WorldRiftGenerationEnabled is supposed to control whether rifts and gateways generate outside of Limbo. I assume that rifts and gateways are always supposed to generate in Limbo given the wording of that description. However, if the flag was set to false, we would also disable rift generation in Limbo. I've fixed this by ignoring that flag if we detect that the chunk is in Limbo.
This commit is contained in:
parent
ecaa90a438
commit
a628f3c63b
1 changed files with 3 additions and 1 deletions
|
@ -8,6 +8,7 @@ import net.minecraft.world.World;
|
|||
import net.minecraft.world.chunk.IChunkProvider;
|
||||
import StevenDimDoors.mod_pocketDim.helpers.dimHelper;
|
||||
import StevenDimDoors.mod_pocketDim.items.ItemRiftBlade;
|
||||
import StevenDimDoors.mod_pocketDim.world.LimboProvider;
|
||||
import StevenDimDoors.mod_pocketDim.world.pocketProvider;
|
||||
import cpw.mods.fml.common.IWorldGenerator;
|
||||
|
||||
|
@ -35,7 +36,8 @@ public class RiftGenerator implements IWorldGenerator
|
|||
{
|
||||
//Don't generate rifts or gateways if the rift generation flag is disabled,
|
||||
//the current world is a pocket dimension, or the world is remote.
|
||||
if (!properties.WorldRiftGenerationEnabled || world.provider instanceof pocketProvider || world.isRemote)
|
||||
if ((!properties.WorldRiftGenerationEnabled && !(world.provider instanceof LimboProvider)) ||
|
||||
world.provider instanceof pocketProvider || world.isRemote)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue