monolith spawn and NPE in SchematicLoader fixes
This commit is contained in:
parent
4a58f793a9
commit
cb9c996861
3 changed files with 18 additions and 4 deletions
|
@ -72,7 +72,21 @@ public class SchematicLoader
|
|||
|
||||
public void init(LinkData link)
|
||||
{
|
||||
String filePath = dimHelper.dimList.get(link.destDimID).dungeonGenerator.schematicPath;
|
||||
//adding default pocket
|
||||
String filePath="";
|
||||
if(!dimHelper.dimList.containsKey(link.destDimID))
|
||||
{
|
||||
|
||||
}
|
||||
else if(dimHelper.dimList.get(link.destDimID).dungeonGenerator==null)
|
||||
{
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
filePath = dimHelper.dimList.get(link.destDimID).dungeonGenerator.schematicPath;
|
||||
}
|
||||
|
||||
|
||||
this.schematic=filePath;
|
||||
try
|
||||
|
|
|
@ -180,7 +180,7 @@ public class LimboGenerator extends ChunkProviderGenerate implements IChunkProvi
|
|||
|
||||
|
||||
|
||||
if(rand.nextInt(4)>1)
|
||||
if(rand.nextInt(7)>1)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -4,12 +4,12 @@
|
|||
"name": "Dimensional Doors",
|
||||
"description": "Bend and twist reality itelf, creating pocket dimensions, rifts, and much more",
|
||||
"version": "1.4.0",
|
||||
"credits": "Created by StevenRS11, logo by Jaitsu",
|
||||
"credits": "Created by StevenRS11, Coded by StevenRS11 and SenseiKiwi, logo and testing by Jaitsu",
|
||||
"logoFile": "/dimdoors_logo.png",
|
||||
"mcversion": "",
|
||||
"url": "http://www.minecraftforum.net/topic/1650007-147smpssplan-dimensional-doors-v110-physics-what-physics-updated-with-fancy-opengl/",
|
||||
"updateUrl": "",
|
||||
"authors": [ "StevenRS11" ],
|
||||
"authors": [ "StevenRS11, SenseiKiwi" ],
|
||||
"parent":"",
|
||||
"screenshots": [],
|
||||
"dependencies": [
|
||||
|
|
Loading…
Reference in a new issue