Skip to content

Commit

Permalink
🐛 Use max charge instead of this 4
Browse files Browse the repository at this point in the history
  • Loading branch information
fantomitechno committed Jan 4, 2024
1 parent de71318 commit 55cf551
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ org.gradle.jvmargs=-Xmx1G
org.gradle.parallel = true

# Mod Properties
version = 1.0.1
version = 1.0.2
# Notes: when debugging, use rc's, so it would become: 0.X.X-rc.X
maven_group = dev.renoux
archives_base_name = enderrelay
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public ItemStack execute(BlockSource blockSource, ItemStack itemStack) {
BlockState blockState = level.getBlockState(blockPos);
this.setSuccess(true);
if (blockState.is(ModRegistries.ENDER_RELAY_BLOCK)) {
if (blockState.getValue(EnderRelayBlock.CHARGE) != 4) {
if (blockState.getValue(EnderRelayBlock.CHARGE) != EnderRelayBlock.MAX_CHARGES) {
EnderRelayBlock.charge(null, level, blockPos, blockState);
itemStack.shrink(1);
} else {
Expand Down

0 comments on commit 55cf551

Please sign in to comment.