fix:null error

I mistakenly removed A.
This commit is contained in:
yukieiji committed 2021-11-30 02:10:55 +09:00
1 parent 732f8947f5
commit 51b723da32
1 file changed
+1
@@ -695,6 +695,7 @@ public class TileEssentiaCompressor extends SynchronizedTileEntity implements IE
public int addEssentia(Aspect aspect, int i, ForgeDirection direction) {
if(this.canInputFrom(direction) && this.canAccept(aspect)) {
TileEssentiaCompressor master = this.tryFindMasterTile();
if(master == null) return 0;
int diff = master.currentStorageSize() - master.al.getAmount(aspect);
if(diff <= 0) return 0;
i = master.currentStorageSize() >= master.al.getAmount(aspect) + i ? i : diff;