diff options
author | CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> | 2023-06-09 00:42:41 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-08 16:42:41 +0200 |
commit | 8ae7d865f07f5ad090cf7c36a4a6808c6dd42e28 (patch) | |
tree | f78f4fc4a6c5446613efe77d39ec9f83bd638c92 /src | |
parent | 8115922b37e375285c2a72dbdbb5d83fd942e27c (diff) | |
download | NotEnoughUpdates-8ae7d865f07f5ad090cf7c36a4a6808c6dd42e28.tar.gz NotEnoughUpdates-8ae7d865f07f5ad090cf7c36a4a6808c6dd42e28.tar.bz2 NotEnoughUpdates-8ae7d865f07f5ad090cf7c36a4a6808c6dd42e28.zip |
New commands in storage overlay (#715)
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/StorageManager.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/StorageManager.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/StorageManager.java index 22dd8a15..25d0588b 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/StorageManager.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/StorageManager.java @@ -488,11 +488,14 @@ public class StorageManager { } } } - storageOpenSwitchMillis = System.currentTimeMillis(); - desiredStoragePage = page; - NotEnoughUpdates.INSTANCE.sendChatMessage("/storage " + (desiredStoragePage - 8)); + if (page < 9) { + NotEnoughUpdates.INSTANCE.sendChatMessage("/enderchest " + (page + 1)); + } else { + desiredStoragePage = page; + NotEnoughUpdates.INSTANCE.sendChatMessage("/storage"); + } } } |