Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/main/java/com/aetherteam/aether/item/EquipmentUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import net.minecraft.world.entity.player.Player;
import net.minecraft.world.item.Item;
import net.minecraft.world.item.ItemStack;
import net.neoforged.fml.ModList;

import javax.annotation.Nullable;
import java.util.List;
Expand All @@ -26,8 +25,7 @@ public final class EquipmentUtil {
* @return Whether the attack was full strength, as a {@link Boolean}.
*/
public static boolean isFullStrength(LivingEntity attacker) {
boolean combatifyLoaded = ModList.get().isLoaded("combatify");
return !(attacker instanceof Player player) || (combatifyLoaded ? player.getAttackStrengthScale(1.0F) >= 1.95F : player.getAttackStrengthScale(1.0F) >= 1.0F);
return !(attacker instanceof Player player) || player.getAttackStrengthScale(1.0F) >= 1.0F;
}

/**
Expand Down