Skip to content

Commit 51af93f

Browse files
RacoonDogtyrannus00
authored and
tyrannus00
committed
Damage utils patch 1 (MeteorDevelopment#4384)
1 parent f1abce0 commit 51af93f

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/main/java/meteordevelopment/meteorclient/utils/entity/DamageUtils.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public static float fallDamage(LivingEntity entity) {
114114
if (StatusEffectHelper.hasStatusEffect(entity, StatusEffects.SLOW_FALLING) || StatusEffectHelper.hasStatusEffect(entity, StatusEffects.LEVITATION)) return 0f;
115115

116116
// Fast path - Above the surface
117-
int surface = mc.world.getWorldChunk(entity.getBlockPos()).getHeightmap(Heightmap.Type.MOTION_BLOCKING).get(entity.getBlockX(), entity.getBlockZ());
117+
int surface = mc.world.getWorldChunk(entity.getBlockPos()).getHeightmap(Heightmap.Type.MOTION_BLOCKING).get(entity.getBlockX() & 15, entity.getBlockZ() & 15);
118118
if (entity.getBlockY() >= surface) return fallDamageReductions(entity, surface);
119119

120120
// Under the surface

src/main/java/meteordevelopment/meteorclient/utils/entity/effects/StatusEffectBruteForce.java

-3
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,6 @@ public static void initEntries() {
8888
ALL_ENTRIES.add(StatusEffectEntry.of(StatusEffects.POISON, 2));
8989
ALL_ENTRIES.add(StatusEffectEntry.of(StatusEffects.WITHER, 1));
9090
ALL_ENTRIES.add(StatusEffectEntry.of(StatusEffects.HEALTH_BOOST, 1));
91-
ALL_ENTRIES.add(StatusEffectEntry.of(StatusEffects.ABSORPTION, 1));
92-
ALL_ENTRIES.add(StatusEffectEntry.of(StatusEffects.ABSORPTION, 4));
9391
ALL_ENTRIES.add(StatusEffectEntry.of(StatusEffects.GLOWING, 1));
9492
ALL_ENTRIES.add(StatusEffectEntry.of(StatusEffects.LEVITATION, 1));
9593
ALL_ENTRIES.add(StatusEffectEntry.of(StatusEffects.LUCK, 1));
@@ -124,7 +122,6 @@ public static EntityEffectCache fetch(LivingEntity entity) {
124122
return container;
125123
}
126124

127-
@SuppressWarnings("UnstableApiUsage")
128125
private static void update(int particleColor, LivingEntity entity, EntityEffectCache container) {
129126
container.statusEffects.clear();
130127
container.particleColor = particleColor;

0 commit comments

Comments
 (0)