1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-19 19:25:48 +00:00

Update src/main/java/io/github/thebusybiscuit/slimefun4/api/events/SlimefunItemSpawnEvent.java

Mark optional as nonnull

Co-authored-by: TheBusyBiscuit <TheBusyBiscuit@users.noreply.github.com>
This commit is contained in:
Silent 2023-10-15 03:47:31 -07:00 committed by GitHub
parent 9cc955d75e
commit bd4ca3e72f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,7 +58,7 @@ public class SlimefunItemSpawnEvent extends Event implements Cancellable {
*
* @return The player responsible if applicable.
*/
public Optional<Player> getPlayer() {
public @Nonnull Optional<Player> getPlayer() {
return Optional.ofNullable(player);
}