Compare commits

...
Author SHA1 Message Date
Martin Robertz d97b462cdc Merge remote-tracking branch 'SST-03/patch-1' into dev
# Conflicts:
#	dependencies.gradle
2025-10-02 01:15:23 +02:00
SST-03 7ce76d77cd Update TileEntityApimancersDrainerCommon.java 2025-09-29 17:03:38 +08:00
SST-03 b4da6ce38f Update dependencies.gradle 2025-09-29 16:30:04 +08:00
SST-03 49a39bbd6c Update settings.gradle 2025-09-29 16:15:29 +08:00
SST-03 5c0169b7ea Update TileEntityApimancersDrainerCommon.java 2025-09-29 15:51:56 +08:00
@@ -159,7 +159,7 @@ public class TileEntityApimancersDrainerCommon extends TileEntity
this.worldObj.markBlockForUpdate(this.xCoord, this.yCoord, this.zCoord);
}
if (this.essentia.getAmount(tag) >= amount) {
this.essentia.reduce(tag, amount);
this.essentia.remove(tag, amount);
return true;
}
return false;
@@ -177,7 +177,7 @@ public class TileEntityApimancersDrainerCommon extends TileEntity
}
if (hasIt) {
for (Aspect next : ot.aspects.keySet()) {
essentia.reduce(next, ot.getAmount(next));
essentia.remove(next, ot.getAmount(next));
}
return true;
}
@@ -224,12 +224,10 @@ public class TileEntityApimancersDrainerCommon extends TileEntity
if (!this.worldObj.isRemote) {
this.worldObj.markBlockForUpdate(this.xCoord, this.yCoord, this.zCoord);
}
if (amount > this.essentia.getAmount(aspect)) {
int total = this.essentia.getAmount(aspect);
this.essentia.reduce(aspect, total);
return total;
}
this.essentia.reduce(aspect, amount);
int total = this.essentia.getAmount(aspect);
this.essentia.remove(aspect, amount); // if amount >= total then it will also remove aspect.
if (amount > total) return total;
return amount;
}
return 0;