9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-26 18:49:06 +00:00

Fix sender.player() call without checking if player

This commit is contained in:
CocoTheOwner
2021-07-20 21:50:33 +02:00
parent 0ae7b9c120
commit df4040a96a

View File

@@ -273,8 +273,9 @@ public class IrisProject {
break;
}
}
sender.player().spigot().sendMessage(ChatMessageType.ACTION_BAR, TextComponent.fromLegacyText(C.WHITE + "Generation Complete"));
if (sender.isPlayer()) {
sender.player().spigot().sendMessage(ChatMessageType.ACTION_BAR, TextComponent.fromLegacyText(C.WHITE + "Generation Complete"));
}
});
//@builder