diff options
| author | John <Techlone@users.noreply.github.com> | 2017-04-16 02:18:17 +0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-04-16 02:18:17 +0500 |
| commit | bd1ca056d63fe0ac2c3a8478c78183eafea92096 (patch) | |
| tree | 9c75a11959a6479e27ebc4a6e5818dcc48218e1d /src/main/java/gregtech/common/covers | |
| parent | 88128f31146c9f3fa1f5159fbc1252cb2d79f915 (diff) | |
| parent | 2ee3b7e712413604549af3097fda93cbb22a262e (diff) | |
| download | GT5-Unofficial-bd1ca056d63fe0ac2c3a8478c78183eafea92096.tar.gz GT5-Unofficial-bd1ca056d63fe0ac2c3a8478c78183eafea92096.tar.bz2 GT5-Unofficial-bd1ca056d63fe0ac2c3a8478c78183eafea92096.zip | |
Merge pull request #14 from Blood-Asp/unstable
Update
Diffstat (limited to 'src/main/java/gregtech/common/covers')
| -rw-r--r-- | src/main/java/gregtech/common/covers/GT_Cover_ItemMeter.java | 4 |
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;
|
