diff --git a/src/main/java/forestry/mail/gui/ContainerCatalogue.java b/src/main/java/forestry/mail/gui/ContainerCatalogue.java index 0bd066de5..e6e4418e8 100755 --- a/src/main/java/forestry/mail/gui/ContainerCatalogue.java +++ b/src/main/java/forestry/mail/gui/ContainerCatalogue.java @@ -110,6 +110,9 @@ public class ContainerCatalogue extends Container implements IGuiSelectable { return; } + if (stations.size() == 0) { + return; + } stationIndex = (stationIndex + 1) % stations.size(); updateTradeInfo(); } @@ -120,6 +123,9 @@ public class ContainerCatalogue extends Container implements IGuiSelectable { return; } + if (stations.size() == 0) { + return; + } stationIndex = (stationIndex - 1 + stations.size()) % stations.size(); updateTradeInfo(); }