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:
parent
9cc955d75e
commit
bd4ca3e72f
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user