Fix for minor NPE causes by null player when updating Spout-based appearances
also updated Spout lib
This commit is contained in:
parent
c43d34af79
commit
dedb282498
BIN
lib/SpoutAPI.jar
BIN
lib/SpoutAPI.jar
Binary file not shown.
@ -194,12 +194,13 @@ public class SpoutFeatures
|
||||
if (viewedFaction == null)
|
||||
return;
|
||||
|
||||
SpoutPlayer sPlayer = SpoutManager.getPlayer(viewer.getPlayer());
|
||||
Player pViewed = viewed.getPlayer();
|
||||
if (pViewed == null || viewer.getPlayer() == null)
|
||||
return;
|
||||
|
||||
String viewedTitle = viewed.getTitle();
|
||||
Player pViewed = viewed.getPlayer();
|
||||
Player pViewer = viewer.getPlayer();
|
||||
if (pViewed == null || pViewer == null)
|
||||
return;
|
||||
|
||||
SpoutPlayer sPlayer = SpoutManager.getPlayer(pViewer);
|
||||
String viewedTitle = viewed.getTitle();
|
||||
Rel viewedRole = viewed.getRole();
|
||||
|
||||
if ((Conf.spoutFactionTagsOverNames || Conf.spoutFactionTitlesOverNames) && viewer != viewed)
|
||||
|
Loading…
Reference in New Issue
Block a user