Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
Patbox committed Nov 13, 2021
1 parent f59dc10 commit 4e98d38
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ org.gradle.jvmargs=-Xmx1G
loader_version=0.11.6

# Mod Properties
mod_version = 0.1.8+1.17.1
mod_version = 0.1.9+1.17.1
maven_group = eu.pb4
archives_base_name = polymer

Expand Down
7 changes: 5 additions & 2 deletions src/main/java/eu/pb4/polymer/item/ItemHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import net.minecraft.entity.EquipmentSlot;
import net.minecraft.entity.attribute.EntityAttribute;
import net.minecraft.entity.attribute.EntityAttributeModifier;
import net.minecraft.entity.effect.StatusEffectInstance;
import net.minecraft.item.EnchantedBookItem;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
Expand Down Expand Up @@ -83,8 +84,10 @@ public static ItemStack getVirtualItemStack(ItemStack itemStack, ServerPlayerEnt
}
}
} else if (itemStack.getItem() instanceof PotionItem) {
if (PotionUtil.getPotionEffects(itemStack).stream().anyMatch(statusEffectInstance -> statusEffectInstance.getEffectType() instanceof VirtualObject)) {
return createBasicVirtualItemStack(itemStack, player);
for (StatusEffectInstance statusEffectInstance : PotionUtil.getPotionEffects(itemStack)) {
if (statusEffectInstance.getEffectType() instanceof VirtualObject) {
return createBasicVirtualItemStack(itemStack, player);
}
}
}

Expand Down

0 comments on commit 4e98d38

Please sign in to comment.