mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-12-27 11:07:49 +01:00
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,11 +194,12 @@ public class SpoutFeatures
|
|||||||
if (viewedFaction == null)
|
if (viewedFaction == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
SpoutPlayer sPlayer = SpoutManager.getPlayer(viewer.getPlayer());
|
|
||||||
Player pViewed = viewed.getPlayer();
|
Player pViewed = viewed.getPlayer();
|
||||||
if (pViewed == null || viewer.getPlayer() == null)
|
Player pViewer = viewer.getPlayer();
|
||||||
|
if (pViewed == null || pViewer == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
SpoutPlayer sPlayer = SpoutManager.getPlayer(pViewer);
|
||||||
String viewedTitle = viewed.getTitle();
|
String viewedTitle = viewed.getTitle();
|
||||||
Rel viewedRole = viewed.getRole();
|
Rel viewedRole = viewed.getRole();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user