aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/gregtech')
-rw-r--r--src/main/java/gregtech/common/covers/GT_Cover_ItemMeter.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/gregtech/common/covers/GT_Cover_ItemMeter.java b/src/main/java/gregtech/common/covers/GT_Cover_ItemMeter.java
index 9768c7b5db..d353b715dc 100644
--- a/src/main/java/gregtech/common/covers/GT_Cover_ItemMeter.java
+++ b/src/main/java/gregtech/common/covers/GT_Cover_ItemMeter.java
@@ -19,7 +19,7 @@ public class GT_Cover_ItemMeter
int tAll = 0;
int tFull = 0;
for (int i : tSlots) {
- if ((i > 0) && (i < aTileEntity.getSizeInventory())) {
+ if ((i >= 0) && (i < aTileEntity.getSizeInventory())) {
tAll += 64;
ItemStack tStack = aTileEntity.getStackInSlot(i);
if (tStack != null) {
@@ -36,7 +36,7 @@ public class GT_Cover_ItemMeter
}
public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ) {
- aCoverVariable = (aCoverVariable + (aPlayer.isSneaking()? -1 : 1)) % (2 + aTileEntity.getSizeInventory());
+ aCoverVariable = (aCoverVariable + (aPlayer.isSneaking()? -1 : 1)) % (1 + aTileEntity.getSizeInventory());
switch(aCoverVariable) {
case 0: GT_Utility.sendChatToPlayer(aPlayer, "Normal"); break;
case 1: GT_Utility.sendChatToPlayer(aPlayer, "Inverted"); break;