Skip to content

Commit

Permalink
fix collision override
Browse files Browse the repository at this point in the history
  • Loading branch information
aagrishankov committed Jun 11, 2023
1 parent 42d4701 commit 8b34d96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ package gregtech.api.interfaces.tileentity

interface IProvideEnergyCover {
val stored: Long
val capacity: Long
val maxCapacity: Long
}
2 changes: 1 addition & 1 deletion src/main/java/gregtech/common/covers/GT_Cover_EUMeter.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCov
if (mTileEntity instanceof IProvideEnergyCover) {
IProvideEnergyCover buffer = (IProvideEnergyCover) mTileEntity;
long tStored = buffer.getStored();
tScale = (buffer.getCapacity() / 15);
tScale = (buffer.getMaxCapacity() / 15);
setOutputRedstoneSignal(aSide, aCoverVariable, aTileEntity, tScale, tStored);
}
}
Expand Down

0 comments on commit 8b34d96

Please sign in to comment.