Skip to content

Commit

Permalink
Fixed Capability simulation
Browse files Browse the repository at this point in the history
  • Loading branch information
Buuz135 committed Dec 4, 2024
1 parent 35a54af commit c0ae6e4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}

0 comments on commit c0ae6e4

Please sign in to comment.