aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBlood-Asp <bloodasphendrik@gmail.com>2017-03-23 13:17:10 +0100
committerBlood-Asp <bloodasphendrik@gmail.com>2017-03-23 13:59:16 +0100
commit896ee56a0832667c38d0774b978548c663e22d68 (patch)
tree7eaf8c5a74f020bfa86dec000ad9c424988c8629 /src
parent5f56c40a7590bf84f9cc121df71ef70a1b07d0e5 (diff)
downloadGT5-Unofficial-896ee56a0832667c38d0774b978548c663e22d68.tar.gz
GT5-Unofficial-896ee56a0832667c38d0774b978548c663e22d68.tar.bz2
GT5-Unofficial-896ee56a0832667c38d0774b978548c663e22d68.zip
Fix ItemDetector Cover not detecting slot 0
Diffstat (limited to 'src')
-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;