Fixed Reader and Writers GUIs still displaying channels even if not connected, fixes #1452
This commit is contained in:
@@ -10,6 +10,7 @@
|
|||||||
- Fixed some translations having too big "Craft" text (raoulvdberge)
|
- Fixed some translations having too big "Craft" text (raoulvdberge)
|
||||||
- Fixed crash with GUI when toggling the Grid size quickly (raoulvdberge)
|
- Fixed crash with GUI when toggling the Grid size quickly (raoulvdberge)
|
||||||
- Fixed scrollbar not scrolling correctly when clicked with mouse when grid tabs are visible (raoulvdberge)
|
- Fixed scrollbar not scrolling correctly when clicked with mouse when grid tabs are visible (raoulvdberge)
|
||||||
|
- Fixed Reader and Writers GUIs still displaying channels even if not connected (raoulvdberge)
|
||||||
- Reader and Writer blocks now face the block you're placing it on, not the player (raoulvdberge)
|
- Reader and Writer blocks now face the block you're placing it on, not the player (raoulvdberge)
|
||||||
- The Fortune Upgrade doesn't use NBT anymore to store the fortune level (raoulvdberge)
|
- The Fortune Upgrade doesn't use NBT anymore to store the fortune level (raoulvdberge)
|
||||||
- Pressing SHIFT over an item in the Grid will no longer display the full unformatted count, instead, use CTRL + SHIFT and it will be displayed in the tooltip (raoulvdberge)
|
- Pressing SHIFT over an item in the Grid will no longer display the full unformatted count, instead, use CTRL + SHIFT and it will be displayed in the tooltip (raoulvdberge)
|
||||||
|
@@ -16,7 +16,7 @@ public interface IGuiReaderWriter {
|
|||||||
|
|
||||||
INetwork getNetwork();
|
INetwork getNetwork();
|
||||||
|
|
||||||
boolean canUpdate();
|
boolean isActive();
|
||||||
|
|
||||||
default void onAdd(String name) {
|
default void onAdd(String name) {
|
||||||
INetwork network = getNetwork();
|
INetwork network = getNetwork();
|
||||||
|
@@ -195,6 +195,6 @@ public class GuiReaderWriter extends GuiBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private List<String> getChannels() {
|
private List<String> getChannels() {
|
||||||
return readerWriter.canUpdate() ? CHANNELS : Collections.emptyList();
|
return readerWriter.isActive() ? CHANNELS : Collections.emptyList();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user