working on dungeon changes
This commit is contained in:
@@ -57,7 +57,7 @@ public class CommandEndDungeonCreation extends CommandBase
|
|||||||
player.sendChatToPlayer("created dungeon schematic in " +mod_pocketDim.schematicContainer+"/"+var2[0]+".schematic");
|
player.sendChatToPlayer("created dungeon schematic in " +mod_pocketDim.schematicContainer+"/"+var2[0]+".schematic");
|
||||||
mod_pocketDim.customDungeons.add(newDungeon);
|
mod_pocketDim.customDungeons.add(newDungeon);
|
||||||
|
|
||||||
if(customDungeonImporter.customDungeonStatus.containsKey(player.worldObj.provider.dimensionId))
|
if(customDungeonImporter.customDungeonStatus.containsKey(player.worldObj.provider.dimensionId)&&!player.worldObj.isRemote)
|
||||||
{
|
{
|
||||||
dimHelper.instance.teleportToPocket(player.worldObj, customDungeonImporter.customDungeonStatus.get(player.worldObj.provider.dimensionId), player);
|
dimHelper.instance.teleportToPocket(player.worldObj, customDungeonImporter.customDungeonStatus.get(player.worldObj.provider.dimensionId), player);
|
||||||
|
|
||||||
|
|||||||
@@ -288,7 +288,7 @@ public class dimHelper extends DimensionManager
|
|||||||
|
|
||||||
if(entity instanceof EntityPlayerMP)
|
if(entity instanceof EntityPlayerMP)
|
||||||
{
|
{
|
||||||
WorldServer.class.cast(newWorld).theChunkProviderServer.loadChunk(MathHelper.floor_double(entity.posX) >> 4, MathHelper.floor_double(entity.posZ) >> 4);
|
WorldServer.class.cast(newWorld).getChunkProvider().loadChunk(MathHelper.floor_double(entity.posX) >> 4, MathHelper.floor_double(entity.posZ) >> 4);
|
||||||
}
|
}
|
||||||
mod_pocketDim.teleporter.placeInPortal(entity, newWorld, link);
|
mod_pocketDim.teleporter.placeInPortal(entity, newWorld, link);
|
||||||
return entity;
|
return entity;
|
||||||
|
|||||||
@@ -1,51 +0,0 @@
|
|||||||
package StevenDimDoors.mod_pocketDim.world;
|
|
||||||
|
|
||||||
import StevenDimDoors.mod_pocketDim.mod_pocketDim;
|
|
||||||
import cpw.mods.fml.relauncher.Side;
|
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Random;
|
|
||||||
import net.minecraft.world.ChunkPosition;
|
|
||||||
import net.minecraft.world.World;
|
|
||||||
import net.minecraft.world.WorldType;
|
|
||||||
import net.minecraft.world.biome.BiomeGenBase;
|
|
||||||
import net.minecraft.world.biome.WorldChunkManager;
|
|
||||||
import net.minecraft.world.gen.layer.GenLayer;
|
|
||||||
import net.minecraft.world.gen.layer.IntCache;
|
|
||||||
|
|
||||||
import net.minecraftforge.common.*;
|
|
||||||
import net.minecraftforge.event.terraingen.*;
|
|
||||||
import static net.minecraft.world.biome.BiomeGenBase.*;
|
|
||||||
|
|
||||||
public class WorldChunkManagerLimbo extends WorldChunkManager
|
|
||||||
|
|
||||||
|
|
||||||
{
|
|
||||||
|
|
||||||
BiomeGenBase biomeGenerator = mod_pocketDim.limboBiome;
|
|
||||||
public BiomeGenBase[] getBiomesForGeneration(BiomeGenBase[] par1ArrayOfBiomeGenBase, int par2, int par3, int par4, int par5)
|
|
||||||
{
|
|
||||||
return new BiomeGenBase[] {mod_pocketDim.limboBiome};
|
|
||||||
}
|
|
||||||
|
|
||||||
public BiomeGenBase[] getBiomeGenAt(BiomeGenBase[] par1ArrayOfBiomeGenBase, int par2, int par3, int par4, int par5, boolean par6)
|
|
||||||
{
|
|
||||||
return new BiomeGenBase[] {mod_pocketDim.limboBiome};
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public BiomeGenBase getBiomeGenAt(int par1, int par2)
|
|
||||||
{
|
|
||||||
return mod_pocketDim.limboBiome;
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean areBiomesViable(int par1, int par2, int par3, List par4List)
|
|
||||||
{
|
|
||||||
return par4List.contains(this.biomeGenerator);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
package StevenDimDoors.mod_pocketDim.world;
|
|
||||||
|
|
||||||
import cpw.mods.fml.relauncher.Side;
|
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Random;
|
|
||||||
import net.minecraft.world.ChunkPosition;
|
|
||||||
import net.minecraft.world.World;
|
|
||||||
import net.minecraft.world.WorldType;
|
|
||||||
import net.minecraft.world.biome.WorldChunkManager;
|
|
||||||
import net.minecraft.world.gen.layer.GenLayer;
|
|
||||||
import net.minecraft.world.gen.layer.IntCache;
|
|
||||||
|
|
||||||
import net.minecraftforge.common.*;
|
|
||||||
import net.minecraftforge.event.terraingen.*;
|
|
||||||
import static net.minecraft.world.biome.BiomeGenBase.*;
|
|
||||||
|
|
||||||
public class WorldChunkManagerPocket extends WorldChunkManager
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -31,6 +31,11 @@ public class pocketGenerator extends ChunkProviderGenerate implements IChunkProv
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean unloadQueuedChunks()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user