24w44a
This commit is contained in:
1 parent
aea914430a
commit
0bf2b5b862
9 files changed
+28
-28
No files matched your search
@@ -86,12 +86,12 @@ public abstract class Explosion_optimizedTntMixin
|
||||
}
|
||||
|
||||
@Redirect(method = "hurtEntities",
|
||||
at = @At(value = "INVOKE", target = "Lnet/minecraft/world/entity/Entity;setDeltaMovement(Lnet/minecraft/world/phys/Vec3;)V"))
|
||||
at = @At(value = "INVOKE", target = "Lnet/minecraft/world/entity/Entity;push(Lnet/minecraft/world/phys/Vec3;)V"))
|
||||
private void setVelocityAndUpdateLogging(Entity entity, Vec3 velocity)
|
||||
{
|
||||
if (eLogger != null) {
|
||||
eLogger.onEntityImpacted(entity, velocity.subtract(entity.getDeltaMovement()));
|
||||
}
|
||||
entity.setDeltaMovement(velocity);
|
||||
entity.push(velocity);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user