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 {
6
6
7
7
8
8
group = ' com.datdeveloper'
9
- version = " ${ minecraftVersion} -1.4.0 "
9
+ version = " ${ minecraftVersion} -1.4.1 "
10
10
11
11
java {
12
12
archivesBaseName = ' datmoddingapi'
Original file line number Diff line number Diff line change 4
4
import net .minecraft .ChatFormatting ;
5
5
import net .minecraft .commands .CommandSource ;
6
6
import net .minecraft .network .chat .*;
7
+ import org .checkerframework .checker .units .qual .C ;
7
8
import org .jetbrains .annotations .NotNull ;
8
9
import org .jetbrains .annotations .Nullable ;
9
10
@@ -197,7 +198,10 @@ protected Component getFooter(final int page) {
197
198
* @param source The command source to send the page to
198
199
*/
199
200
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
+ }
201
205
202
206
final MutableComponent component = MutableComponent .create (ComponentContents .EMPTY );
203
207
if (headerText != null ) {
You can’t perform that action at this time.
0 commit comments