Skip to content

Commit

Permalink
Change Container#type() to Optional
Browse files Browse the repository at this point in the history
  • Loading branch information
MrHell228 committed May 15, 2024
1 parent e753a23 commit 6a56cb0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ public boolean isOpen() {
}

@Override
public ContainerType type() {
return ((ContainerType) this.menuType);
public Optional<ContainerType> type() {
return Optional.ofNullable((ContainerType) this.menuType);
}

private List<net.minecraft.server.level.ServerPlayer> listeners() {
Expand Down

0 comments on commit 6a56cb0

Please sign in to comment.