Finally fixed spawn bug. Still no idea why it was happening though
Signed-off-by: StevenRS11 <stevenrs11@aol.com>
This commit is contained in:
@@ -40,16 +40,12 @@ public class BlockDimWallPerm extends Block
|
||||
{
|
||||
Random rand = new Random();
|
||||
|
||||
int size = dimHelper.instance.linksForRendering.size();
|
||||
LinkData link;
|
||||
if(size!=0)
|
||||
LinkData link=dimHelper.instance.getRandomLinkData(false);
|
||||
if(link==null)
|
||||
{
|
||||
link = (LinkData) dimHelper.instance.linksForRendering.get(rand.nextInt(size));
|
||||
}
|
||||
else
|
||||
{
|
||||
link =new LinkData(0,0,0,0);
|
||||
link =new LinkData(0,0,0,0);
|
||||
}
|
||||
|
||||
|
||||
if(dimHelper.getWorld(0)==null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user