Skip to content

Commit

Permalink
chore: menu type in container menus is nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
raoulvdberge committed Mar 10, 2024
1 parent ce827d0 commit 8a47e57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public abstract class AbstractBaseContainerMenu extends AbstractContainerMenu {
protected SlotReference disabledSlot;
private final Map<PropertyType<?>, Property<?>> propertyMap = new HashMap<>();

protected AbstractBaseContainerMenu(final MenuType<?> type, final int syncId) {
protected AbstractBaseContainerMenu(@Nullable final MenuType<?> type, final int syncId) {
super(type, syncId);
this.transferManager = Platform.INSTANCE.createTransferManager(this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ public abstract class AbstractResourceContainerMenu extends AbstractBaseContaine
@Nullable
private final Player player;

protected AbstractResourceContainerMenu(final MenuType<?> type, final int syncId, final Player player) {
protected AbstractResourceContainerMenu(@Nullable final MenuType<?> type, final int syncId, final Player player) {
super(type, syncId);
this.player = player;
}

protected AbstractResourceContainerMenu(final MenuType<?> type, final int syncId) {
protected AbstractResourceContainerMenu(@Nullable final MenuType<?> type, final int syncId) {
super(type, syncId);
this.player = null;
}
Expand Down

0 comments on commit 8a47e57

Please sign in to comment.