Skip to content

Commit

Permalink
Fixed #3, no change to namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
RaymondBlaze committed Apr 24, 2022
1 parent 17dbb0e commit 3b6f376
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 @@ -10,7 +10,7 @@ org.gradle.daemon=false
mappings_version=2022.02.13-1.18.1

# Mod Properties
mod_version=1.0.3.1
mod_version=1.0.4
mod_id=origins_classes
mod_author=LimonBlaze
maven_group=limonblaze.originsclasses
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class AbstractCauldronBlockMixin {
ItemStack stack = player.getItemInHand(hand);
if(stack.getItem() instanceof PotionItem &&
!PotionUtils.getPotion(stack).getEffects().isEmpty() &&
NbtUtils.getOriginsClassesData(stack, NbtUtils.POTION_BONUS, NbtType.BYTE).isPresent()) {
!NbtUtils.getOriginsClassesData(stack, NbtUtils.POTION_BONUS, NbtType.BYTE).isPresent()) {
int bonus = IPowerContainer.getPowers(player, OriginsClassesPowers.POTION_BONUS.get()).stream()
.filter(cp -> cp.isActive(player)).mapToInt(cp -> cp.getConfiguration().value()).sum();
if(bonus > 0) {
Expand Down

0 comments on commit 3b6f376

Please sign in to comment.