mirror of
https://github.com/GTNewHorizons/Gadomancy.git
synced 2026-11-27 15:23:22 +00:00
fix:null error
I mistakenly removed A.
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user