Fix error when opening player inventories

This commit is contained in:
Electroid 2017-04-01 12:47:54 -07:00 committed by GitHub
parent af0e0e1ed1
commit af1ebe598a
1 changed files with 1 additions and 1 deletions

View File

@ -270,7 +270,7 @@ public class ViewInventoryMatchModule extends MatchModule implements Listener {
MatchPlayer matchHolder = this.match.getPlayer(holder);
if (matchHolder != null && matchHolder.isParticipating()) {
BlitzMatchModule module = matchHolder.getMatch().getMatchModule(BlitzMatchModuleImpl.class);
if(module != null) {
if(module != null && module.activated() && module.lives(matchHolder).isPresent()) {
int livesLeft = module.livesCount(matchHolder);
ItemStack lives = new ItemStack(Material.EGG, livesLeft);
ItemMeta lifeMeta = lives.getItemMeta();