Skip to content

Commit

Permalink
build: update to arnicalib v6.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
WakelessSloth56 committed Feb 21, 2024
1 parent 93b8bd9 commit 59be4ce
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ neo_version=20.4.80-beta
neo_version_range=[20.4,)
loader_version_range=[2,)

arnicalib_version=6.1.0
arnicalib_version_range=[6.1.0,)
arnicalib_version=6.1.1
arnicalib_version_range=[6.1.1,)
jei_version=17.3.0.49

mod_repository=auioc/HarmonicEnchantments
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ public float onLivingHurt(int lvl, boolean isSource, EquipmentSlot slot, LivingE

@Override
public void onPlayerTick(int lvl, ItemStack itemStack, EquipmentSlot slot, Player player, TickEvent.Phase phase, LogicalSide side) {
if (phase == TickEvent.Phase.END && side == LogicalSide.SERVER && player.tickCount % 11 == 0 && player.isScoping()) {
if (phase == TickEvent.Phase.END && side == LogicalSide.SERVER
&& player.tickCount % 11 == 0 && player.isScoping()
) {
var hit = RayCastUtils.entityOnView(player, 100.0D);
if (hit != null && hit.getEntity() instanceof LivingEntity living) {
if (!living.hasEffect(MobEffects.GLOWING)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
import net.minecraft.world.item.enchantment.Enchantments;
import org.auioc.mcmod.arnicalib.base.collection.ListUtils;
import org.auioc.mcmod.arnicalib.base.math.MathUtil;
import org.auioc.mcmod.arnicalib.game.item.ItemUtils;
import org.auioc.mcmod.harmonicench.enchantment.HEEnchantments;
import org.auioc.mcmod.harmoniclib.enchantment.api.HLEnchantment;
import org.auioc.mcmod.harmoniclib.enchantment.api.IItemEnchantment;
Expand Down Expand Up @@ -117,7 +118,7 @@ public int getDamageProtection(int lvl, ItemStack itemStack, DamageSource source

@Override
public void onItemTooltip(int lvl, @NotNull ItemStack itemStack, @Nullable Player player, List<Component> lines, TooltipFlag flags) {
if (ItemStack.shouldShowInTooltip(itemStack.getHideFlags(), ItemStack.TooltipPart.MODIFIERS)) { // TODO arnicalib
if (ItemUtils.shouldShowInTooltip(itemStack, ItemStack.TooltipPart.MODIFIERS)) {
int i = ListUtils.indexOf(
lines,
(l) -> l.getContents() instanceof TranslatableContents t && TOOLTIP_MODIFIER_KEYS.contains(t.getKey())
Expand Down
2 changes: 0 additions & 2 deletions src/main/resources/META-INF/accesstransformer.cfg

This file was deleted.

3 changes: 0 additions & 3 deletions src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ description = '''${lib_mod_description}'''
[[mixins]]
config="harmoniclib.mixin.json"

[[accessTransformers]]
file="META-INF/accesstransformer.cfg"

[[dependencies.${lib_mod_id}]]
modId="neoforge"
type="required"
Expand Down

0 comments on commit 59be4ce

Please sign in to comment.