Fix an NPE
This commit is contained in:
parent
c34c2354bd
commit
5649117b1f
@ -88,22 +88,18 @@ public class PSFormatAbstract implements PSFormat
|
|||||||
|
|
||||||
Object val = null;
|
Object val = null;
|
||||||
|
|
||||||
|
val = ps.getWorld();
|
||||||
|
if (val != null)
|
||||||
|
{
|
||||||
if (this.useWorldDisplayname)
|
if (this.useWorldDisplayname)
|
||||||
{
|
{
|
||||||
val = ps.getWorld();
|
|
||||||
val = Mixin.getWorldDisplayName(val.toString());
|
val = Mixin.getWorldDisplayName(val.toString());
|
||||||
if (val != null) ret.add(String.format(this.formatWorld, val));
|
|
||||||
}
|
}
|
||||||
else if (this.useWorldAlias)
|
else if (this.useWorldAlias)
|
||||||
{
|
{
|
||||||
val = ps.getWorld();
|
|
||||||
val = Mixin.getWorldAliasOrId(val.toString());
|
val = Mixin.getWorldAliasOrId(val.toString());
|
||||||
if (val != null) ret.add(String.format(this.formatWorld, val));
|
|
||||||
}
|
}
|
||||||
else
|
ret.add(String.format(this.formatWorld, val));
|
||||||
{
|
|
||||||
val = ps.getWorld();
|
|
||||||
if (val != null) ret.add(String.format(this.formatWorld, val));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
val = ps.getBlockX();
|
val = ps.getBlockX();
|
||||||
|
Loading…
Reference in New Issue
Block a user