File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
src/main/java/com/datdeveloper/datmoddingapi/command/util Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ plugins {
66
77
88group = ' com.datdeveloper'
9- version = " ${ minecraftVersion} -1.4.0 "
9+ version = " ${ minecraftVersion} -1.4.1 "
1010
1111java {
1212 archivesBaseName = ' datmoddingapi'
Original file line number Diff line number Diff line change 44import net .minecraft .ChatFormatting ;
55import net .minecraft .commands .CommandSource ;
66import net .minecraft .network .chat .*;
7+ import org .checkerframework .checker .units .qual .C ;
78import org .jetbrains .annotations .NotNull ;
89import org .jetbrains .annotations .Nullable ;
910
@@ -197,7 +198,10 @@ protected Component getFooter(final int page) {
197198 * @param source The command source to send the page to
198199 */
199200 public void sendPage (final int page , final CommandSource source ) {
200- if (page > getTotalPageCount ()) return ;
201+ if (page > getTotalPageCount ()) {
202+ source .sendSystemMessage (Component .literal (DatChatFormatting .TextColour .ERROR + "There aren't that many pages" ));
203+ return ;
204+ }
201205
202206 final MutableComponent component = MutableComponent .create (ComponentContents .EMPTY );
203207 if (headerText != null ) {
You can’t perform that action at this time.
0 commit comments