diff --git a/CHANGELOG.md b/CHANGELOG.md index cfe5379..64e2a8f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# Version 1.10.3 +* Fixed Capability simulation + # Version 1.10.2 * Changed the Soul Laser Base to have a soul capability and the pipe network will now store the souls extracted from the pipes * Added a lens background to the Soul Laser Base slot diff --git a/gradle.properties b/gradle.properties index daf93c5..3dcab7e 100644 --- a/gradle.properties +++ b/gradle.properties @@ -30,7 +30,7 @@ mod_name=Industrial Foregoing Souls # The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default. mod_license=MIT # The mod version. See https://semver.org/ -mod_version=1.10.2 +mod_version=1.10.3 # The group ID for the mod. It is only important when publishing as an artifact to a Maven repository. # This should match the base package used for the mod sources. # See https://maven.apache.org/guides/mini/guide-naming-conventions.html diff --git a/src/main/java/com/buuz135/industrialforegoingsouls/capabilities/SLBSoulCap.java b/src/main/java/com/buuz135/industrialforegoingsouls/capabilities/SLBSoulCap.java index 2127fdc..6a69ff2 100644 --- a/src/main/java/com/buuz135/industrialforegoingsouls/capabilities/SLBSoulCap.java +++ b/src/main/java/com/buuz135/industrialforegoingsouls/capabilities/SLBSoulCap.java @@ -36,7 +36,9 @@ public int drain(int maxDrain, Action action) { if (action.execute()){ return blockEntity.useSoul(maxDrain); } else { - return Math.max(0, this.blockEntity.getSoulAmount() - maxDrain); + var oldAmount = this.blockEntity.getSoulAmount(); + var newAmount = Math.max(0, this.blockEntity.getSoulAmount() - maxDrain); + return oldAmount - newAmount; } } }