Fixed probable Dimensional Warp NPE.
This commit is contained in:
@@ -592,6 +592,10 @@ public class DimensionalWrap extends AbstractInstance
|
|||||||
}
|
}
|
||||||
case "CHANGE_LOCATION":
|
case "CHANGE_LOCATION":
|
||||||
{
|
{
|
||||||
|
if (player == null)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
final Instance world = player.getInstanceWorld();
|
final Instance world = player.getInstanceWorld();
|
||||||
if (!isInInstance(world))
|
if (!isInInstance(world))
|
||||||
{
|
{
|
||||||
|
@@ -592,6 +592,10 @@ public class DimensionalWrap extends AbstractInstance
|
|||||||
}
|
}
|
||||||
case "CHANGE_LOCATION":
|
case "CHANGE_LOCATION":
|
||||||
{
|
{
|
||||||
|
if (player == null)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
final Instance world = player.getInstanceWorld();
|
final Instance world = player.getInstanceWorld();
|
||||||
if (!isInInstance(world))
|
if (!isInInstance(world))
|
||||||
{
|
{
|
||||||
|
@@ -592,6 +592,10 @@ public class DimensionalWrap extends AbstractInstance
|
|||||||
}
|
}
|
||||||
case "CHANGE_LOCATION":
|
case "CHANGE_LOCATION":
|
||||||
{
|
{
|
||||||
|
if (player == null)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
final Instance world = player.getInstanceWorld();
|
final Instance world = player.getInstanceWorld();
|
||||||
if (!isInInstance(world))
|
if (!isInInstance(world))
|
||||||
{
|
{
|
||||||
|
@@ -592,6 +592,10 @@ public class DimensionalWrap extends AbstractInstance
|
|||||||
}
|
}
|
||||||
case "CHANGE_LOCATION":
|
case "CHANGE_LOCATION":
|
||||||
{
|
{
|
||||||
|
if (player == null)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
final Instance world = player.getInstanceWorld();
|
final Instance world = player.getInstanceWorld();
|
||||||
if (!isInInstance(world))
|
if (!isInInstance(world))
|
||||||
{
|
{
|
||||||
|
@@ -592,6 +592,10 @@ public class DimensionalWrap extends AbstractInstance
|
|||||||
}
|
}
|
||||||
case "CHANGE_LOCATION":
|
case "CHANGE_LOCATION":
|
||||||
{
|
{
|
||||||
|
if (player == null)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
final Instance world = player.getInstanceWorld();
|
final Instance world = player.getInstanceWorld();
|
||||||
if (!isInInstance(world))
|
if (!isInInstance(world))
|
||||||
{
|
{
|
||||||
|
@@ -592,6 +592,10 @@ public class DimensionalWrap extends AbstractInstance
|
|||||||
}
|
}
|
||||||
case "CHANGE_LOCATION":
|
case "CHANGE_LOCATION":
|
||||||
{
|
{
|
||||||
|
if (player == null)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
final Instance world = player.getInstanceWorld();
|
final Instance world = player.getInstanceWorld();
|
||||||
if (!isInInstance(world))
|
if (!isInInstance(world))
|
||||||
{
|
{
|
||||||
|
@@ -592,6 +592,10 @@ public class DimensionalWrap extends AbstractInstance
|
|||||||
}
|
}
|
||||||
case "CHANGE_LOCATION":
|
case "CHANGE_LOCATION":
|
||||||
{
|
{
|
||||||
|
if (player == null)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
final Instance world = player.getInstanceWorld();
|
final Instance world = player.getInstanceWorld();
|
||||||
if (!isInInstance(world))
|
if (!isInInstance(world))
|
||||||
{
|
{
|
||||||
|
@@ -592,6 +592,10 @@ public class DimensionalWrap extends AbstractInstance
|
|||||||
}
|
}
|
||||||
case "CHANGE_LOCATION":
|
case "CHANGE_LOCATION":
|
||||||
{
|
{
|
||||||
|
if (player == null)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
final Instance world = player.getInstanceWorld();
|
final Instance world = player.getInstanceWorld();
|
||||||
if (!isInInstance(world))
|
if (!isInInstance(world))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user