From 9a8cca228dfd5aac2be28e77a392c5b9458d0845 Mon Sep 17 00:00:00 2001 From: MoriyaShiine <45156123+MoriyaShiine@users.noreply.github.com> Date: Fri, 18 Oct 2024 17:30:20 -0500 Subject: [PATCH] knockback explosions are now more potent on non-players --- .../java/ladysnake/blast/common/world/KnockbackExplosion.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/ladysnake/blast/common/world/KnockbackExplosion.java b/src/main/java/ladysnake/blast/common/world/KnockbackExplosion.java index 191cbeb..9ea0480 100644 --- a/src/main/java/ladysnake/blast/common/world/KnockbackExplosion.java +++ b/src/main/java/ladysnake/blast/common/world/KnockbackExplosion.java @@ -37,6 +37,8 @@ public void affectWorld(boolean particles) { double strength = (1 - distance) * getExposure(source, entity); if (entity instanceof PlayerEntity player) { getAffectedPlayers().put(player, new Vec3d(dX * strength, dY * strength, dZ * strength)); + } else { + strength *= 2; } if (entity instanceof LivingEntity living) { strength *= 1 - living.getAttributeValue(EntityAttributes.GENERIC_EXPLOSION_KNOCKBACK_RESISTANCE);