Fixed NPE that occurs when a player is offline when chests are cleared.
This commit is contained in:
parent
1196d74140
commit
23e970bc60
@ -49,7 +49,7 @@ public class LWCFeatures
|
|||||||
{
|
{
|
||||||
if(lwc.findProtection(chests.get(x)) != null)
|
if(lwc.findProtection(chests.get(x)) != null)
|
||||||
{
|
{
|
||||||
if(!faction.getFPlayers().contains(FPlayers.i.get(lwc.findProtection(chests.get(x)).getBukkitOwner())))
|
if(!faction.getFPlayers().contains(FPlayers.i.get(lwc.findProtection(chests.get(x)).getOwner())))
|
||||||
lwc.findProtection(chests.get(x)).remove();
|
lwc.findProtection(chests.get(x)).remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user